public function isDefinedTrait($name) { $name = $this->normalizeTrait($name); return isset($this->definitions['traits'][$name]); }