def value_to_bool(value):
    """Return bool True/False for a given value.
    If value is string and is True or 1, return True
    If value is string and is False or 0, return False
    Otherwise if value is numeric or None, return bool(value)
    """
    if isinstance(value, bool):
        return value
    elif isinstance(value, str):
        return value.lower() in ("true", "1")
    elif isinstance(value, int) or value is not None:
        return bool(value)
    else:
        return False