if ($user_id == NULL || $user_name == NULL || $user_logged == NULL) { $user_id = \'-1\'; $user_name = NULL; $user_logged = NULL; } if ($user_admin == NUL
The best and easiest way to check if a variable is empty in PHP is just to use the empty() function.
if empty($variable) then ....