def string_or_empty(string):
    """Returns a string preceded by an underscore or an empty string.
    Depending on whether the string parameter is none or not.

    :param string: string.
    :returns: a new string.
    """
    return string if string else ''