public function removeFile($file) { if (file_exists($path = "ssh2.sftp://{$this->sftp}{$file}")) { $this->protect('unlink', [$path]); } }