evaluation of condition could have side effects, so repeated use of `$cond` might be unsafe (e.g. `result = $i++` vs `result = $i++ || is_a($i++, 'Closure')`)

Maybe wrap the check in a function call? `phptal_get_value_from_unwrapped_closure($cond)` or such.