patched up definition if isZero for polynomials