title: When using ".Get(0)" on an empty list, I get an out of bounds exception and not null?
body: <p>So in my homework assignment, for my error checking testing stuff I do a get on a <code>List&lt;SomeObject&gt;</code> and I get an <code>IndexOutOfBoundsException</code>. I solve it by using a check on <code>.isEmpty</code> but what I would like to know why doesn't:</p>
  
  <pre><code>boolean b = myList.Get(0) != null;
  </code></pre>
  
  <p>work? </p>
  
  <p>When I debug the application and look at <code>myList</code> I see 9 entries of <code>null</code>. I can see it as being size <code>0</code> though, so that's probably why? It's size <code>0</code>, so when I try to get an entry it doesn't exist?</p>