minor improvement

idiomatic usage of logical or