title: Check for variable before foreach loop, shorthand?
body: <p>I have code set up like the following often:</p>
  
  <pre><code>if ($arr) {
      foreach ($arr as $a) {
          // Code stuffs
      }
  }
  </code></pre>
  
  <p>If <code>$arr</code> doesn't exist, it doesn't matter in the slightest, so I'm tempted to use everybody's favorite suppressor (<code>@</code>) rather than muck up my code with that if statement.</p>
  
  <ul>
  <li>Is there some kind of shorthand to do that if check and foreach on the same line?</li>
  <li>Any huge issue with suppressing the error in this context?</li>
  </ul>