protected function startsWith($key)
    {
        foreach ($this->rules as $rule) {
            if (starts_with($rule, $key)) {
                return true;
            }
        }

        return false;
    }