Finding out why PHP 5.4 fails, added some checks