Changed reduce(or_, iter) with chain(iter)