in PHP $_SESSION["user"] == false || $_SESSION["user"] == null are the same thing. Using === would not be. You could as well just write  ! $_SESSION["user"] and match false, null and 0 with it.