properly convert result of bitwise AND to bool in macro