public function offsetExists($offset) { if (in_array($offset, array('discount_amount', 'discount_amount_tax'))) { return true; } return parent::offsetExists($offset); }