/** * {@inheritdoc} */ public function isExists() { $data = $this->queryDriver->selectQuery(); if (!$data) { return null; } if (null !== $data['ttl']) { $now = new \DateTime('now'); $ttl = new \DateTime($data['ttl']); if ($ttl < $now) { return $this->createUnlock(); } } return true; }