Is there a better way to do this if condition
<p>I have this if statement </p>

<pre><code> if (!(@$donnees['mode']['delete'] === true || @$donnees['mode']['display'] === true)){
     //doSomething only if mode is not delete nor display 
 }
</code></pre>

<p>i used <code>@</code> to not get the notice when mode is not set.
because if i use isset instead it would be even uglier :</p>

<pre><code>$cond_delete = isset($donnees['mode']['delete']) &amp;&amp; $donnees['mode']['delete'] === true;
$cond_display = isset($donnees['mode']['display ']) &amp;&amp; $donnees['mode']['display '] === true;

if (!($cond_delete || $cond_display)){
   //doSomething only if mode is not delete nor display 
}
</code></pre>

<p>Is there a more concise way to do this ? </p>

<p>Thanks </p>
