public function itemExists(ItemInterface $item, Batch $batch)
 {
     if (is_object($item->getContentObject())) {
         return true;
     }
     foreach ($batch->getPages() as $page) {
         if ($page->getBatchPath() == $item->getReference()) {
             return true;
         }
     }
 }
 public function itemExists(ItemInterface $item, Batch $batch)
 {
     if (is_object($item->getContentObject())) {
         return true;
     }
     $mapper = new PageType();
     $targetItemList = new TargetItemList($batch, $mapper);
     $importItem = new Item($item->getReference());
     $targetItem = $targetItemList->getSelectedTargetItem($importItem);
     if (!$targetItem instanceof UnmappedTargetItem) {
         return true;
     }
 }
 public function itemExists(ItemInterface $item, Batch $batch)
 {
     if (is_object($item->getContentObject())) {
         return true;
     }
     $feeds = $batch->getObjectCollection('page_feed');
     foreach ($feeds->getFeeds() as $feed) {
         if ($feed->getHandle() == $item->getReference()) {
             return true;
         }
     }
     return false;
 }
 public function itemExists(ItemInterface $item, Batch $batch)
 {
     return is_object($item->getContentObject());
 }