added Basket Plugin - Check VAT ID

I need some help adding the Basket Plugin for the VAT ID Check.
If VAT ID is set, the taxrate must be removed. 
If VAT ID is removed, the taxrate must be added again.