def is_empty(value):
    """ Check whether value is empty """
    if type(value) == str and value.strip() == '' or type(value
        ) == list and len(value) == 0:
        return True
    else:
        return False
