I think this would be easier to read if the boolean was inlined