public static function isValid($_filename) { $file_content = file_get_contents($_filename); return preg_match(self::pattern, $file_content); }