public function hasTemplateType(string $template_type_identifier) : bool { return isset($this->template_type_map[$template_type_identifier]) || ($this->hasParentScope() ? $this->getParentScope()->hasTemplateType($template_type_identifier) : false); }