function getChapterPages(Chapter $chapter) { return call_user_func(f\pipeline(getUrl, f\bind(toDomDoc), Either\toMaybe, f\bind(chapterPages)), $chapter->getUrl()); }