def _check_update_deletes_allowed_address_pairs(self, port):
        """Determine if request deletes address pair.

        Return True if port has an allowed address pair and its value
        is either [] or not is_attr_set, otherwise return False
        """
        return (port['port'] in addr_pair.ADDRESS_PAIRS and
                not self._has_address_pairs(port))
dataset/ETHPy150Open openstack/neutron/neutron/db/allowedaddresspairs_db.py/AllowedAddressPairsMixin._check_update_deletes_allowed_address_pairs/swapped operands of `in`