code: public function has($name)
      {
          if (!array_key_exists($name, $this->data)) {
              return false;
          }
  
          if (0 === $this->data[$name]['lifeTime']) {
              return true;
          }
  
          return $this->data[$name]['lifeTime'] > time();
      }
docs: {@inheritdoc}