def get_if_exist(data, keys):
    """ Recursively get a value from a nested dictionary

    Parameters
    ----------
    data : dict
        The (nested) dictionary
    keys : list
        The list of keys to fetch

    Returns
    -------
    any or None
        The value at data[keys[0]][keys[1]] etc. or None if a key is not found.
    """

    if keys[0] in data:
        if len(keys) == 1:
            return data[keys[0]]
        else:
            return get_if_exist(data[keys[0]], keys[1:])
    else:
        return None