def value_exists(value):
    """
    This is a test to see if a positive value exists. All of these return false:
        "" (an empty string)
        0 (0 as an integer)
        0.0 (0 as a float)
        "0" (0 as a string)
        NULL
        FALSE
        array() (an empty array)
    :param value:
    :return: bool
    """
    try:
        value = float(value)
    except __HOLE__:
        pass
    return bool(value)
dataset/ETHPy150Open wevoteeducation/WeVoteBase/wevote_functions/models.py/value_exists