Boolean function with return