private function testMatchGroupOptions($groups)
{
if (empty($groups)) {
return true;
}
if (!empty($this->options->groups) && !array_intersect($groups, $this->options->groups)) {
return false;
}
if (!empty($this->options->excludeGroups) && array_intersect($groups, $this->options->excludeGroups)) {
return false;
}
return true;
}