def get_value_or_none(data, index):
    """
    Get value at certain index from list. Return None if index outside data
    range.
    """
    try:
        return data[index]
    except IndexError:
        return None