public function dirExists($dir)
    {
        return ($this->isConnected() === true) ? ftp_rmdir($this->connectionString.$dir) : false;
    }
public function dirExists($dir)
    {
        return ($this->isConnected() === true) ? ftp_rmdir($this->connectionString.$dir) : false;
    }
public function dirExists ( $ dir ) { return ( $ this -> isConnected ( ) === true ) ? ftp_rmdir ( $ this -> connectionString . $ dir ) : false ; }
Check is the dir is exists.

@param (string) $dir directory

@since 3.0.0

@return bool
Check is the dir is exists .