title: PHP / is_array() ternary: return array / create array
body: <p>Is there any way to achieve something like this without repeating the variable / without packing the whole thing in a function?</p>
  <p>So instead of...</p>
  <pre><code>$data = array();
  $result = (is_array($data) ? $data : array());
  </code></pre>
  <p>Something like this...</p>
  <pre><code>$data = array();
  $result = (is_array($data) ? return : array());
  </code></pre>