public function matchesGroup($groups = null)
    {
        if (null !== $groups) {
            $group_names = self::getGroupNames($groups);
            return in_array($this->group, $group_names);
        }

        return true;
    }