The bitwise OR is (mathematically) not wrong here, but logical OR would be better.