How can I check if the cart has shippable products?
The function is now a part of the CartInterface and implemented in the Cart::isShippable() method. You can use the CartManager service to retrieve the Cart object and call the method:

\Drupal::service('uc_cart.manager')-&gt;get()-&gt;isShippable()