Can a group have a null ID? And do we need to check for `group` being `null` here, too?