SyntaxFix
Write A Post
Hire A Developer
Questions
It is not necessary.
No warning is generated if the variable does not exist. That means empty() is essentially the concise equivalent to !isset($var) || $var == false.
php.net