title: how to detect if an array isnt empty?
body: <p>I am trying to detect if an array isn't empty in order to be able to do a certain call.
  I tried using <code>if (![array ==nil])</code> however that doesn't compile.
  I'm sure there is a really easy explanation to this.</p>
  
  <h3>Update</h3>
  
  <p>If array is empty I want to do this:</p>
  
  <pre><code>array = [[NSMutableArray alloc]init];
  </code></pre>
  
  <p>If it has an object I want to do this:</p>
  
  <pre><code>array = [[userDefaults arrayForKey:@"MyFavorites"] mutableCopy];
  </code></pre>