reminderMapper->findOverdue(); foreach ($reminders as $reminder) { try { $this->reminderService->send($reminder); } catch (DoesNotExistException $e) { $this->logger->debug('Could not send notification for reminder with id ' . $reminder->getId()); } } } }