def is_undefined(value):
    """
    Indicate whether the specified value is undefined or not.

    A string is undefined if it is null or if it does not contain any data.


    :param value: a value.


    :return: `True` if the value is undefined, `False` otherwise.
    """
    return value is None or isinstance(value, str) and len(value.strip()) == 0
