title: Best way to check if objects have been removed from NSCache?
body: <p>Since NSCache is a black box as in:</p>
  
  <p>1) No system notification is sent when objects are removed due to memory pressure.</p>
  
  <p>2) The cache is not purged by the OS en total but pared down object-by-object after a memory threshold is reached.</p>
  
  <p>Is there a better way to check if a cached object still exists other than checking to see if it's empty like so:</p>
  
  <pre><code>NSArray *array = [[MyCache sharedCache] someArray];
  if (array.count &gt; 0)
  {
    //you're ok
  }
  else
  {
    [self repopulateCache];
  }
  </code></pre>