Use is_polynomial instead