if 'pop' in kwargs:
        for key in kwargs['pop']:
            value = d.pop(key, None)

            if value is not None: