public function hasDiscount() { if ($this->discount_price || $this->discount) { return true; } return false; }