def as_list(value):
    """Fetch a value that is either a single entry or a list as a list"""
    if not value:
        return []

    if not isinstance(value, list):
        value = [value]

    return value