How to avoid undefined index
<p>How can you easily avoid getting this error/notice in PHP?</p>

<pre><code>Notice: Undefined index: test in /var/www/page.php on line 21
</code></pre>

<p>The code:</p>

<pre><code>$table = 'test';
$preset = array();
method($preset[$table]);
</code></pre>

<p>The array <code>$preset</code> exists but not with the specified index</p>
