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

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

        return false;
    }
protected function startsWith ( $ key ) { foreach ( $ this -> rules as $ rule ) { if ( starts_with ( $ rule , $ key ) ) { return true ; } } return false ; }
Checks if any rule starts with a given key

@param string $key

@return bool
Checks if any rule starts with a given key