If you set a cache without data, it will be mark as null instead of false(for failure), so you can use is_null to check if the cache is empty or false.