fix boolean logic typo

As stated in the error message _or_ is the correct operator.