Is there some way to make if statements (or equivalent functions) compare one statement to several variables at the same time? For example...
if ($var == $foo || $bar)
...will always evaluate as true (as long as $bar evaluates as true) because the the || is processed after the comparison.