Probably, you miss the `sym` symbol.  An example:
```
In [6]: (sin(x)*y).is_polynomial()
Out[6]: False

In [7]: (sin(x)*y).is_polynomial(y)
Out[7]: True
```