public function requiresShipping() { foreach ($this->items as $i) { if ($i->product->weight !== null) { return true; } } return false; }