check if __file is not dir; check if __file contains '.php'