Added the class check method for php clips