Getting rid of "undefined index" in one line without duplication
<p>I am processing the result of a <em>GROUP BY</em> query which does not produce result for all the permutation of constants. It obviously gives an "Undefined Index" notice which I want to get of.</p>

<p>Of course I could use <code>isset</code> but it would mean duplication of code (of the index). An other way would be to use a variable to store the index, but it would mean every such line of code is now two line. I like the readability of this line of code.</p>

<pre><code>$stat-&gt;setMapped($companyStats["Account"][mypackage_MyClass::$STATUS_ACCEPTED]);
</code></pre>

<p>Is there any way (except the error operator <code>@</code> to avoid this notice)?</p>
