title: ios how to check if object in array in particular index exist?
body: <p>I have nsmutable array and I want to add object at particular index, how can I check if the array at particular index has a object or not?</p>
  
  <p>I was doing this:</p>
  
  <pre><code>if ([self.myArray objectAtIndex:index] !=nil) {
  </code></pre>
  
  <p>but I'm getting exceptions most of the time because "beyond bounds"</p>
  
  <p>I'll really appreciate your help</p>