public function exists(string $connection = null): bool
    {
        $connection = $connection ?? $this->tenantName();

        return Arr::has($this->db->getConnections(), $connection);
    }
public function exists(string $connection = null): bool
    {
        $connection = $connection ?? $this->tenantName();

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

@param string|null $connection
@return bool
Checks whether a connection has been set up .