Use isFirebase instead of instanceof Firebase
Update firebase dependency