making it clearer how bool values should be used in JS