`accumulator` should be on the left side of `||` so that we avoid invoking `block` unnecessarily if we already know the result.