+ /**
+ * Magic isset method. Returns true if the field exists, either in the data prperty array or in any of the local properties.
+ * Used by array_column() on an array of objects.
+ *
+ * @param $name
+ * @return bool
+ */
+ public function __isset($name)
+ {
+ return in_array($name, array_merge(array_keys($this->data), array_keys(get_object_vars($this))));
+ }
+