Before I write to the Firebase database, I\'d like to check if the write is valid via a Firebase function. When a user is online this is easy because I can put the Firebase data