This PR is part of a couple of changes correcting these redundant ternary operations: ``` x ? y : false -> x && y x ? false : y -> !x && y x ? y : true - > !x || y x ? true : y -> x || y ``` This PR mirrors upstream work being done in the same direction: https://issues.chromium.org/issues/416294715 Bug: https://github.com/brave/brave-browser/issues/49819