     
     private func importDownloadedFile(_ pathString: String) {
         let path = directoryFor(pathString).appendingPathComponent("content.json")
-        let data = dataForFile(path)
+        guard let data = dataForFile(path) else {
+            return
+        }
+        
         syncableType.syncableDeserialize(data)
     }
     

        try! FileManager.default.createDirectory(atPath: url.path, withIntermediateDirectories: true, attributes: nil)
    }
    
    private func dataForFile(_ url: URL) -> Data {
        return try! Data(contentsOf: url, options: .mappedIfSafe)
    }
    
    private func progressUpdate() {

            self.createDirectory(directory)
            return directory.appendingPathComponent("content.json")
        }).response { response, error in
            if let e = error {
                print(e)
            } else {
                self.importDownloadedFile(contentPath)
            }
            self.downloadFiles()
        }
    }
