CTSession.FirstDatabase() will retrieve the name and path of the first database in a session. If the session has no databases, CTSession.FirstDatabase() returns false (false).
TOCIndex