remove unneeded condition from parseBool, improve boolean tests