How about using the primitive boolean type? Boolean can be null, which may cause unwanted behavior.