private function isUsingStandardPort(): bool
    {
        return $this->port === null ||
            (($this->scheme === 'http' && $this->port === 80) || ($this->scheme === 'https' && $this->port === 443));
    }