def _check_update_deletes_security_groups(self, port):
        if (ext_sg.SECURITYGROUPS in port['port'] and
            not (validators.is_attr_set(port['port'][ext_sg.SECURITYGROUPS])
                 and port['port'][ext_sg.SECURITYGROUPS] != [])):
            return True
        return False
Ensure deletion of a key from dictionary.
dataset/ETHPy150Open openstack/neutron/neutron/db/securitygroups_db.py/SecurityGroupDbMixin._check_update_deletes_security_groups--crossover with--dataset/ETHPy150Open lethain/Redis-Python-Datastructures/redis_ds/redis_dict.py/RedisDict.__delitem__