original_string: public function exists(string $connection = null): bool
      {
          $connection = $connection ?? $this->tenantName();
  
          return Arr::has($this->db->getConnections(), $connection);
      }
code: public function exists(string $connection = null): bool
      {
          $connection = $connection ?? $this->tenantName();
  
          return Arr::has($this->db->getConnections(), $connection);
      }
code_tokens: public function exists ( string $ connection = null ) : bool { $ connection = $ connection ?? $ this -> tenantName ( ) ; return Arr :: has ( $ this -> db -> getConnections ( ) , $ connection ) ; }
docstring: Checks whether a connection has been set up.
  
  @param string|null $connection
  @return bool
docstring_tokens: Checks whether a connection has been set up .