diff --git a/shipping/uc_quote/uc_quote.module b/shipping/uc_quote/uc_quote.module
index a930b4b1e8..abee220636 100644
--- a/shipping/uc_quote/uc_quote.module
+++ b/shipping/uc_quote/uc_quote.module
@@ -366,7 +366,7 @@ function uc_quote_uc_shipping_type() {
  *   The type of product that is fulfilled by various fulfillment modules.
  */
 function uc_quote_set_shipping_type($id_type, $id, $shipping_type) {
-  if ($shipping_type !== '') {
+  if (!empty($shipping_type)) {
     db_merge('uc_quote_shipping_types')
       ->key(array(
         'id_type' => $id_type,
