def get_nested(d: dict, *keys):
    """ Gets nested dict values, returning None if any in the chain don't exist or are None. """

    if len(keys) == 1:
        return d[keys[0]]

    else:
        nested = d.get(keys[0], None)
        if nested is not None:
            return get_nested(nested, *keys[1:])
        else:
            return None