def noneToDefaultOrValue(value, default=''):
    """Convert a NoneType to a default or pass back the value.

    Parameters
    ----------
    value : anything
        The value to possibly convert.
    default : anything, optional
        The default to return if value is NoneType.

    Returns
    -------
    anything
        The converted value.
    """
    return default if value is None else value
