Boolean function complete with return value