title: Checking if NSFetchedResultsController returns no objects
body: <p>I want to check if a NSFetchedResultsController isn't returning any objects.  The point of this is that I want to conditionally display some information on the page to inform the user that there are no objects. (And also give them an option to create one.)</p>
  
  <p>I have this connected to a normal table view.  My thought was that I could check this in an if statement like this:</p>
  
  <pre><code>- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
      if ([[[_fetchedResultsController sections] objectAtIndex:section] numberOfObjects] == 0) {
          return @"Message goes here.";
      }
      return nil;
  }
  </code></pre>
  
  <p>This works fine, but I'm not sure if it is the best way to go about this.  Also, the method is taking the section info as an argument, so I'm kind of restricted to using this only in certain areas.  If I am not using a sectionNameKeyPath in my fetch request, would I be able to do this:</p>
  
  <pre><code>if ([[[_fetchedResultsController sections] objectAtIndex:0] numberOfObjects] == 0)
  </code></pre>
  
  <p>and just use 0 in place of section?  I've check out <a href="https://stackoverflow.com/questions/5343245/determine-if-nsfetchedresultscontroller-is-empty">this post</a>, but the answer doesn't really seem to answer the question.</p>