private function getGroupsFromString($groups) { $groups = explode(",", $groups); $groups = array_filter($groups, 'strlen'); return $groups; }