title: How do I check if an array index is out of range SWIFT
body: <p>I want to be able to check when my array index goes out of range. The array elements are all strings, so I tried to do something like this but it doesn't work: </p>
  
  <pre><code>if questions[3] != nil {
  }
  </code></pre>
  
  <p>Can someone just show me how to check?</p>