reduce code duplication and simplify init of boolean values with new method mapToBoolean()