Your Boolean field has a method booleanValue() that returns a primitive boolean true or false. You can use that in a test:
Also look into the ternary ? operator. I reserve it for extremely simple situations like this one and am careful not to abuse it in ways that are hard to read. Some people make life easier and just say never use it. You decide.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi