Check if Firebase returns nothing

Hi,

I’m looking for a way to determine that Firebase did not return any data when queried. Is any flag available already that could be checked, maybe via script?

Thanks!