I'm not sure why this isn't node.hasNode(NodeType.NT_BASE)..