public function nodeIsOfType($nodeTypes)
{
if ($this->node === null) {
return true;
}
if (!is_array($nodeTypes)) {
$nodeTypes = array($nodeTypes);
}
foreach ($nodeTypes as $nodeType) {
if ($this->node->getNodeType()->isOfType($nodeType)) {
return true;
}
}
return false;
}