ROBUSTNESS: Replaced '&' with '&&' and '|' with '||', where scalar logics are expected (not bitwise).