         }
     }
     
+    private func fileExists(withName name: String) -> Bool {
+        return FileManager.default.fileExists(atPath: fileStorePath().appending(name))
+    }
+    
     private func moveFile(atLocation location: URL, withFileName name: String) {
         do {
             try FileManager.default.moveItem(at: location, to: URL(string: fileStorePath().appending(name))!)

        
    }
    
    // MARK: Mass methods
    
    func resumeAll() {
        for upload in currentUploads! {
            resume(forUpload: upload)
        }
    }
    
    func retryAll() {
        for upload in currentUploads! {
            retry(forUpload: upload)
        }
    }
    
    func cancelAll() {
         for upload in currentUploads! {
             cancel(forUpload: upload)
         }
    }
    
    func cleanUp() {
        for upload in currentUploads! {
            cleanUp(forUpload: upload)
        }
    }
    
    // MARK: Private Networking / Upload methods
    
    

           //
    }
    
    // MARK: Mass methods
      
      func resumeAll() {
          for upload in currentUploads! {
              resume(forUpload: upload)
          }
      }
      
      func retryAll() {
          for upload in currentUploads! {
              retry(forUpload: upload)
          }
      }
      
      func cancelAll() {
           for upload in currentUploads! {
               cancel(forUpload: upload)
           }
      }
      
      func cleanUp() {
          for upload in currentUploads! {
              cleanUp(forUpload: upload)
          }
      }
    
    
    // MARK: Methods for one upload
    
