public static bool DatabaseExists(this IDocumentStore documentStore, string databaseName) { var key = "Raven/Databases/" + databaseName; return documentStore.DatabaseCommands.ForSystemDatabase().DocumentExists(key); }