Aren't we make sure group_size is not nil and it is not empty here? if so, we dont need to double check on the update_max_group_size