If what exactly ? Not null, not false, not 0 ? You should be more explicit by avoiding if on non boolean variable. a if (null === $client) is cleaner ;)