Why using this kind of comparison? `if (anm.cache) ...`, `if (anm.cache[url]) ...` and `if (anm.cache[url].image.isReady)` will properly work. Yeah, may be a bit slower due to type conversions, but not so slow to bring readability to sacrifice.