Yeah, coeff does not contain f(x) so thats not needed.
I think this would be sufficient
```
if x in coeff.free_symbols:
    return False
return True
```
this would work