public function matchScheme($scheme): bool
    {
        if( empty($this->schemes) ){
            return true;
        }

        return array_search(strtolower($scheme), array_map('strtolower', $this->schemes)) !== false;
    }
public function matchScheme($scheme): bool
    {
        if( empty($this->schemes) ){
            return true;
        }

        return array_search(strtolower($scheme), array_map('strtolower', $this->schemes)) !== false;
    }
public function matchScheme ( $ scheme ) : bool { if ( empty ( $ this -> schemes ) ) { return true ; } return array_search ( strtolower ( $ scheme ) , array_map ( 'strtolower' , $ this -> schemes ) ) !== false ; }
Does the given scheme match this route's scheme?

@param string $scheme
@return bool
Does the given scheme match this route s scheme?