def hasChildren(self):

        return type(self.data) == type(dict()) and len(self.data.keys())
Return True if data has children.
dataset/ETHPy150Open abehaskins/python-firebasin/firebasin/datasnapshot.py/DataSnapshot.hasChildren