def _get_element_or_alt(data, element, alt):
    """
    if :element: is in dict :data: return it, otherwise 
    return :alt:
    """
    if element in data:
        return data[element]
    else:
        return alt