Fix compiler warning: '&&' within '||' [-Wlogical-op-parentheses]