Fixing redundant use of true/false