public function hasAnnotation($name) { $annotations = $this->getAnnotations(); return isset($annotations[$name]); }