def nested_in(data, keys):
    """
    Check if a series of keys is located in a nested dict
    """
    for key in keys:
        try:
            data = data[key]
        except KeyError:
            return False
    return True
