Use return value for call to getNodeForPath