Use boolean rather than bitwise logic in a conditional

No idea if this helps with #1065 or not, but I'm leery about using bitwise logic where boolean is expected (even if it should, in theory, still work).