I am checking whether the Boolean field called attending exists, however I am not sure how to do that.
attending
Is there a function such as .child().exists()<
.child().exists()<
What you're doing now is correct - you have to read the document and examine the snapshot to see if the field exists. There is no shorter way to do this.