def language_fallback(dct, target_language):
    """
    Finds the most appropriate text given a target
    language and a dict of values
    """
    if not dct:
        return
    if not target_language:
        target_language = 'en'
    # first, check if the chosen language is available
    if target_language in dct:
        return dct[target_language]
    # fall back on english
    if target_language != 'en' and 'en' in dct:
        return dct['en']
    # otherwise, return anything we can find!
    for val in dct.values():
        return val