title: How do I check if an array element exists?
body: <p>I'm looking for Java's equivalent of PHP's <a href="http://php.net/manual/en/function.isset.php" rel="nofollow">isset()</a>;</p>
  
  <pre><code>int board[][]=new int[8][8];
  ...
  if(isset(board[y][x]))
    // Do something with board[y][x]
  </code></pre>
  
  <p>Does such a function exist in Java?</p>
  
  <p>Edit: Sorry, what I meant is that I want to check if <code>board[100][100]</code> exists or not. <code>if(board[100][100])</code> would result in an array out of bounds error.</p>