public function __isset($field) { if (isset($this->{$field})) { return $this->{$field}; } return false; }