def is_empty(obj):
    """Check if an object is empty.

    If object is not a sequence, returns False.
    """

    try:
        return len(obj) == 0
    except Exception:
        return False
Check if an object is empty.

    If object is not a sequence, returns False.
    
src/core/trulens/core/utils/containers.py