I am finding the above filter function prevents the cart from having shipping added for Express checkout type payment methods including Apple Pay. Has anyone else experienced this?