title: Testing null array index
body: <p>Here's the thing:</p>
  
  <pre><code>object[] arrayText = new object[1];
  
  if (arrayText[1] == null)
  {
      MessageBox.Show("Is null");
  }
  </code></pre>
  
  <p>We know that is going to be null, but it throws an exception, but I don't want to handle it in a try/catch block because that is nested in a loop and try/catch will slow it down, also it doesn't look really good:</p>
  
  <pre><code>object[] arrayText = new object[1];
  try
  {
      if (arrayText[1] == null)
      {
  
      }
  }
  catch (Exception ex)
  {
      MessageBox.Show("Is null");
  }
  </code></pre>
  
  <p>Thanks for you suggestions!</p>