You probably should add parens around the second two checks, since they are a group.