def is_closed(self, channel):
    if (channel in self._is_closed):
        return self._is_closed[channel]
    return False
def is_closed(self, channel):
    if (channel in self._is_closed):
        return self._is_closed[channel]
    return False