def __nonzero__(self):
        return bool(self.events)
Make the result appear empty if there are no updates. This is used
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/sync.py/TimelineBatch.__nonzero__