Checks if the entity belongs to any group.
bool isInAnyGroup(int entity) => getGroups(entity) != null;