I have a function which checks the return value from another function and acts on it. some_function() returns a BOOLEAN.
$check = some_function()
if ($check === TRUE) {
return $my_return_val;
} else {
handle_error();
}
Does it make sense to use ternary for this? It seems like the code could be tightened up.