def isEmpty(variable):
    """
    Check if a variable is empty.
    :param date_str: var to check
    :return: True or False
    """
    empty = False
    if len(str(variable)) == 0:
        empty = True
    return empty