def get_has_children(self, obj):
        return Comment.find(Q('target', 'eq', Guid.load(obj._id))).count() > 0
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/comments/serializers.py/CommentSerializer.get_has_children/original