modules: check for navigator existing because it turns out safary is silly