Get id only after checking for node existence.