+
+ /**
+ * Check for existing entry, if it exists, redirect to it with a message.
+ *
+ * @param $entry
+ *
+ * @return array|bool
+ */
+ public function checkIfEntryAlreadyExists($entry)
+ {
+ return $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($entry->getUrl(), $this->getUser()->getId());
+ }