Doing a type safe comparison, otherwise scheme is always ‘https’