Ah! Yeah. == that isn't the same as === is worth avoiding. `if (window.applicationCache)` looks much better.