public function hasTemplateType() : bool { return false !== $this->type_set->find(function (Type $type) : bool { return $type instanceof TemplateType; }); }