@mixin does-parent-exist {@if & {&:hover {color : red; } } @else {a {color : red; } } }