cart • checkout • count • items
Check if there are any items in cart or not.
$totalItemsInCart = Mage::helper('checkout/cart')->getItemsCount();