public function __isset($flag) { return $flag === 'full' || $flag === 'value' || in_array($flag, $this->flags); }