def has_value(var):
    if var is None:
        return

    return bool(var) or (var in (False, 0))
Creates an empty {@link DecoratedTabBar}.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/has_value--crossover with--dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/ui/DecoratorPanel.py/DecoratedTabBar.__init__