public function belongsToGroups(array $groups, Validator $validator) {
		if($this->groups === null)
			return $validator->belongsToGroups($groups);
		else {
			foreach($groups as $group) {
				if(in_array($group, $this->groups))
					return true;
			}
			return false;
		}
	}