public function __isset($name) { if (in_array($name, array('base_amount', 'discount_amount', 'net_amount', 'tax_amount', 'gross_amount'))) { return true; } return parent::__isset($name); }