public function checkPrice() { if ($this->getStockLevel() < 0 && $this->getPrice() !== null) { $this->setPrice(null); } }