Check Spree::Config[:track_inventory_levels] first

By checking Spree::Config[:track_inventory_levels] first in has_stock? and on_hand, it saves my site 12+ database queries since I don't track...