I guess if you’re not familiar with Boolean operators that would be a thing?
Seriously are you saying that
if (x) {
return y;
} else {
return false;
}
is as easy to read as return x && y;