protected function isAttributeCallback($string) { $matches = preg_grep("/(\\w)@(\\w)/", explode("\n", $string)); return count($matches) > 0; }