using the more appropriate .to_bool instead of .value for checking booleaness