cache = [] def get_cache(): return cache x = get_cache() if x is []: print('cache hit')