title: How to check if multiple files exist in documents directory? (Swift)
body: <p>I can check if one file exists with this method:</p>
  
  <pre><code>let fileNameOne = "savedpicture1"
  let fileURLOne = documentsDirectoryURL.appendingPathComponent(fileNameOne) 
  
  if !FileManager.default.fileExists(atPath: fileURLOne.path) {
         removeImage(itemName: "savedpicture1", fileExtension: "jpg")
   } else {
          print("There was no image to remove")
   }
  </code></pre>
  
  <p>My problem is having to repeat the same lines of code for multiple files. For instance, I would like to check if the files exist in an array of paths, but I would have to repeat the code from above for each file, and it seems too redundant. I'm wondering if there's a way to check multiple files instead of repeating the code for each single path. ".fileExists" only enables me to check one path:</p>
  
  <pre><code> let filePaths = [fileURLOne.path, fileURLTwo.path, fileURLThree.path, 
   fileURLFour.path] 
  </code></pre>