What’s the exact definition of this construct in PHP ?
if ($variable) {
...
}
What is checked here: variable set ? variable not null ? variable not empty ? variable true / not false ? The official docs make it very hard to find information on that, plus there are a lot of misleading comments in those docs.
See here:
http://www.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting
Everything else would be considered true, and thus trigger the statement.