private function isCustomCollection(ItemInterface $item) { return !in_array($item->getCollection(), ['posts', 'pages']); }