Adding check to see if getShippingCarrier object exists