For empty() you must set var like this:
$var = 'value':
empty($var);
If you use it directly like this :
empty('value');
It is error!
the $var be set under will return TRUE:
- "" (an empty string)
- 0 (0 as an integer)
- "0" (0 as a string)
- NULL
- FALSE
- array() (an empty array)
- var $var; (a variable declared, but without a value in a class)