     
     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)
     }
     

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

        }
        let path = directoryFor(nextMetaPath).appendingPathComponent("meta.json")

        guard let data = dataForFile(path) else {
            readMetaFiles()
            return
        }
        
        let json = JSON(data: data)

        // Check if the "type" in the json matches the type we're syncing.
        //
