You should instead test if `gcd.is_Pow`, since a `Mul` can have 2 args.