title: Can I define a variable in a PHP if condition?
body: <p>For example, can I do:</p>
  
  <pre><code>if ($my_array = wp_get_category($id)) {
      echo "asdf";
  } else {
      echo "1234";
  }
  </code></pre>
  
  <p>If nothing is returned by the function, I want to go into the else statement.</p>