You could simplify this to be something like...

``` javascript
url = checkUrl.protocol ? checkUrl.toString() : "http://" + checkUrl.toString();
```

An empty string equates to a false value afterall.