/** * @param Update $update * @return bool */ public function exists(Update $update) { if (!$this->redis->exists($update->getMessage()->getChat()->getId())) { return false; } return true; }
/** * Checks if a given key exists. * @param string $key * @return bool */ public function exists($key) { return (bool) $this->database->exists($key); }