Fix ambiguous where for is_variation for certain cases