Check if the entity is in the supplied group.
bool isInGroup(int entity, String group) { final groups = _groupsByEntity[entity]; return (groups != null) && groups.contains(group); }