code: private function isUsingStandardPort(): bool
      {
          return $this->port === null ||
              (($this->scheme === 'http' && $this->port === 80) || ($this->scheme === 'https' && $this->port === 443));
      }
docs: Gets whether or not a standard port is being used for the scheme
  
  @return bool True if using a standard port, otherwise false