This works and there is nothing wrong with splitting off the first part of an expression using a ternary, BUT:

`return $a ? $b : false` is the same as `return $a && $b`; as `$b` will not be tested if `$a` returns with a falsy value.

Just consider this as a side note.