title: jsoup checking if a table exsists
body: <p>I have </p>
  
  <p>Element list = doc.select("table").get(0);         </p>
  
  <p>some times there is no table present, but I am still doing get so I am </p>
  
  <pre><code>Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  </code></pre>
  
  <p>How to get out of this exception?
  there is no size as this is element</p>