iirc the `map` happens before the `ok` part so you won't need to do the `url instanceof URL` check either.