You're right, but that is true because there is not a boolean type, not because of the form of the check.
Either form has the same problem since an int is used in place of a true boolean (true | false | other), but I prefer the form that makes it more explicit and noticeable.