code: protected function groupsMustBeSelected()
      {
          return in_array('GROUPS', $this->select) || in_array('GROUP_ID', $this->select) || in_array('GROUPS_ID', $this->select);
      }
docs: Determine if groups must be selected.
  
  @return bool