public function hasNodeType($name)
{
try {
$this->fetchNodeTypes($name);
} catch (NoSuchNodeTypeException $e) {
// if we have not yet fetched all types and this type is not existing
// we get an exception. just ignore the exception, we don't have the type.
return false;
}
return isset($this->primaryTypes[$name]) || isset($this->mixinTypes[$name]);
}