Replace deprecated "or" and "&" with "||" and "&&".