PHP, easier way to get array values without warnings
<p>Dudes,</p>

<p>is there a more concise way to write the statement below? If I don't check if an array key exists I get a PHP warning. However, the below is a bit too, ehm, wordy.</p>

<p>Thanks!</p>

<pre><code>$display_flag = false;
if (array_key_exists('display_flag',$pref_array) { 
    $display_flag = $pref_array['display_flag']; 
}
</code></pre>
