Remove literal boolean values from comparisons to improve readability.
if var = true then ... if var = false then ...
if var then ... if not var then ...