This assumes that the url object was parsed with `url.parse` and made it to a fully qualified URL.
If replaced with `if(url.format(args[0]))`, this would add support for partial URL objects (e.g. manually creating `{host:'toto'}`. `href` really is specific to `url.parse` as you usually don't build the fully-parsed URL when creating an URL object from parts.