PolynomialQ
PolynomialQ[expr,var] yields True if expr is a polynomial in var, and yields False otherwise.
PolynomialQ[expr,{var1,…}] tests whether expr is a polynomial in the vari.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.