             variants = [product.masterVariant].concat(product.variants)
             match = _.find variants, (v) ->
               v.sku is masterSku
-            if match
+            if match?
               data =
                 productId: product.id
                 productVersion: product.version

        price.channel =
          typeId: 'channel'
          id: channelId
        # If the price has a customerGroup set, we have to update the id with the one from master
        if _.has price, 'customerGroup'
          price.customerGroup.id = masterCustomerGroupId


        version: variantDataInMaster.productVersion
        variantId: variantDataInMaster.productId
        actions: actions

      console.error "ACTIONS %j", data

      @masterClient.products.byId(variantDataInMaster.productId).save(data)
      .then ->
