Fixed PHP 5.4 incompatibility in empty() call