bitwise all the things

changed some comparisons to bitwise and/or falsey