code: public static function sessionExists(string $name = null) : bool
      {
          if (!$name) {
              $name = get_class();
          }
  
          return self::session()->exist($name);
      }
docs: @param string $name
  
  @return bool