check if the node exists