Modify node-existence function