I am seeing a tad difference between child_added and value when returning data in firebase. Using value I can test to see if sna
The child_added event fires for each matching child under the node that you query. If there are no matching children, it will not fire.
This means that to test whether a node exists, you must use a value handler. And since a query can have multiple results, you will need to loop over the children.