When Private.isImgCacheLoaded returns false in ImgCache.getCachedFile then the function exists immediately, this is surprising behaviour when using functions such as ImgCache.getCachedFileURL as I would expect any error to trigger an error callback if one is provided.