Checks if a remote file exists.