diff --git a/src/Moltin/Cart/Item.php b/src/Moltin/Cart/Item.php index 418c8eb..42e32e6 100755 --- a/src/Moltin/Cart/Item.php +++ b/src/Moltin/Cart/Item.php @@ -62,6 +62,19 @@ public function __get($param) return array_key_exists($param, $this->data) ? $this->data[$param] : null; } + + /** + * Return the existence of protected methods + * + * @param any $param + * @return mixed + */ + public function __isset($param) + { + if ($param == 'identifier') return true; + + return array_key_exists($param, $this->data) ? true : false; + } /** * Update data array using set magic method