What is the most succinct way to test if either of two variables are set?
<p>What I'm doing is, if I haven't got an ID in either <code>$_POST</code> or <code>$_SESSION</code> then redirecting. Preference is given to <code>$_POST</code>. So I have this:</p>

<pre><code>$bool = 0;
if (isset($_POST['id'])) {
    $bool = 1;
} elseif (isset($_SESSION['id'])) {
    $bool = 1;
}
if (!$bool) {
    ...//redirect
}
</code></pre>

<p>Is there a quicker way to write this, APART from just removing the braces?</p>
