public function __isset($key) { return isset($this->properties[$key]) || isset($this->cached[$key]); }