title: how can I write this if-this-or-that more succinctly in php
body: <p>I have an if-statement with many options for true, and I have written it as below. How can I write this more succinctly?</p>
  <pre><code>foreach($data_array as $person){
      if(
      isset($person['dept']) &amp;&amp; $person['dept'] == $list &amp;&amp; $person['status'] == 'Current' ||
      isset($person['dept2']) &amp;&amp; $person['dept2'] == $list &amp;&amp; $person['status'] == 'Current' ||
      isset($person['dept3']) &amp;&amp; $person['dept3'] == $list &amp;&amp; $person['status'] == 'Current' ||
      isset($person['dept4']) &amp;&amp; $person['dept4'] == $list &amp;&amp; $person['status'] == 'Current' ||
      isset($person['dept5']) &amp;&amp; $person['dept5'] == $list &amp;&amp; $person['status'] == 'Current'
      )
  { // do something
  </code></pre>