Then please rename the `entity_group` variable into `entity_group_id` and use `entities = [Entity.find(entity_group_id)]`.
This leads to a meaningful exception if it does not exist.