Using return in ternary operator

Solution 1:

This is the correct syntax:

return  !$e ? '' : array('false', $e);

Solution 2:

Close. You'd want return condition?a:b