x & 1 checks bit patterns, and if it's found, returns true. Plus most integers can be converted to bool (0 = false, everything else = true).