FireBase.Apps.Length

if (firebase.apps.length === 0) {
    firebase.initializeApp({});
}
Agreeable Alpaca