Typed up the boolean function and tested it for errors, finding none.