private function isItemWithDate(ItemInterface $item) { $attributes = $item->getAttributes(); return isset($attributes['date']); }