def METHOD_NAME(self, b):
    numBinItems = 0
    bItems = b.items()
    empty = False
    if len(bItems) == 0:
        empty = True
        return empty
    else:
        for b in bItems:
            if isinstance(b, hiero.core.BinItem) or isinstance(
                    b, hiero.core.Bin):
                numBinItems += 1
        if numBinItems == 0:
            empty = True
    return empty