Check whether cache is initialized before starting activity