actually `=== null` would be incorrect because window.applicationCache is probably undefined in browsers that don't support it.

````
if (window.applicationCache)
````

would be a better choice.

(I based this code on the compiled output of my initial CoffeeScript implementation, this is one of the CoffeeScript'isms that crept in).