Get rid of all variable idExists() checks