exist a way to check if an index exists? I need it to avoid the error `no such index` when execute deleteIndex