added check for php file