protected function isLocal(string $url)
    {
        if (mb_stripos($url, '//') === false) {
            return true; // Relative.
        } elseif ($this->current_host) {
            return mb_stripos($url, '//'.$this->current_host.'/') !== false;
        }
        return null; // Unable to determine.
    }