title: Checking if array contains objects issue
body: <p>Why does this block of code not fire? The Array contains 0 objects, so i thought that the <code>array.count == 0</code> should have worked in this case.</p>
  
  <p><img src="https://i.stack.imgur.com/psZIx.png" alt="enter image description here"></p>
  
  <p>Instead, the code goes to the <code>else</code> statement. What am i doing wrong? Or what might be causing this?</p>
  
  <p>Code:</p>
  
  <pre><code>if (indexPath.section == 0) {
      if (!newEvents || newEvents.count == 0)
      {
          // Do stuff
      }
      else
      {
          // do stuff
      }
  }
  else
  {
      if (!oldEvents || oldEvents.count == 0)
      {
          // Do stuff
      }
      else
      {
          // Do stuff
      }
  }
  </code></pre>
  
  <p><strong>Edit</strong> </p>
  
  <p>After looking further into it, i have found that this is not firing, making it seem the other is not:
  <img src="https://i.stack.imgur.com/vwyR2.png" alt="enter image description here"></p>
  
  <p>Here is some more code that might be important to you.</p>
  
  <p><img src="https://i.stack.imgur.com/iU73T.png" alt="enter image description here"></p>