can also do `host.indexOf('https') == 0`
but whicher you think is cleaner