Update shipping.php

Added install/uninstall class check similar to modules/payments/etc.