It made it much easier for my brain to understand the syntax flow of how it returned a true for Y and false for anything else!
The last “return false” statement is unnecessary and will never be executed.