private function matchRule($rule, $options)
    {
        $match = false;
        $type = array_get($rule, 'parameter', 'type');
        $operator = array_get($rule, 'operator', 'equal');
        $value = array_get($rule, 'value', 'default');

        if ($operator == 'equal') {
            $match = ($value === $options[$type]);
        } elseif ($operator == 'notequal') {
            $match = ($value !== $options[$type]);
        }

        return $match;
    }