removing redundant boolean comparisons (closes #124)