isDocumentExist

abstract fun isDocumentExist(documentId: String): Result<Boolean>

Check if a document with the given ID exists. This is an IO operation and is not recommended to execute in the UI thread.