extract pages.any?... in own method