def bool_from(obj, default=False):
    """
    Returns:
        True if obj is not None and its string representation is not 0 or False (case-insensitive). If obj is None,
        'default' is used.
    """
    return str(obj).lower() not in ('0', 'false') if obj is not None else bool(default)