It seems to be the case because the variable $user is an object and cannot be compared with string or integer variables.
_________________________
There are two types of vessels, submarines and targets.