Actually, you can simplify this expression further by directly returning the expression in the condition. Sorry, I didn't see this before. :)