Fix empty() check for PHP 5.4.* :suspect: