Checking if ID exist.