How do I check on iCloud if a file exists, if it hasn't been downloaded to the container yet?

I want to check if a file url exists in the iCloud container so I can ask the user if he wants to write over the file. If I check with FileManager.fileExists() the file may not exist in the iCloud container but exists in the iCloud server. How do I check if the file exists taking this into account?