Use a more explicit check for whether these ids are None.