def empty(value) ->bool:
    """Checks if the value is empty"""
    if value is None:
        return True
    if isinstance(value, str):
        if value.strip() == '':
            return True
    if isinstance(value, list) or isinstance(value, dict):
        if len(value) == 0:
            return True
    return False
