Returns true if the node type is found anywhere in the path chain.
Returns true if the node is found anywhere in the path chain.