PHP 5.4 empty fix.