public static function checkForUpdate($path) { if (strpos($path, '/ShippableHelper/') !== false) { $contents = DevHelper_Generator_File::fileGetContents($path); if (preg_match('#class\\s(?<class>[^\\s]+_ShippableHelper_[^\\s]+)\\s#', $contents, $matches)) { class_exists($matches['class']); } } }