Now handles empty polynomials