def verify_key_already_exists_and_update(orig_dict, new_dict):
    """
    This function updates new_dict in orig_dict.
    :param orig_dict: Dictionary to be updated
    :param new_dict: Dictionary to update

    :return: updated dictionary
    """
    for key, value in new_dict.items():
        if key not in orig_dict:
            orig_dict[key] = value
        else:
            verify_key_already_exists_and_update(orig_dict[key], value)
    return orig_dict