Use the == operator for comparing two primitive values.

Testing a boolean variable equal to true is redundant. The boolean variable itself has the value:
if(aBooleanVar)