Refactor operator checking a bit