code: public function getActiveGroups()
  	{
  		$arrGroups = array();
  		$objGroup = Contao\MemberGroupModel::findAllActive();
  
  		if ($objGroup !== null)
  		{
  			while ($objGroup->next())
  			{
  				$arrGroups[$objGroup->id] = $objGroup->name;
  			}
  		}
  
  		return $arrGroups;
  	}
docs: Filter disabled groups
  
  @return array