`|=` works fine here but IMHO it's maybe not the best style, because `|` is normally associated with bitwise arithmetic and `||` with boolean arithmetic.