public function isNodeType($nodeTypeName) { return $this->getName() == $nodeTypeName || in_array($nodeTypeName, $this->getSupertypeNames()); }