checking code with PHP 5.6