+
+ /**
+ * @param mixed $name
+ * @return bool
+ * @throws HTTPException\InternalServerErrorException
+ */
+ public function __isset($name): bool
+ {
+ if (!property_exists($this, $name)) {
+ throw new HTTPException\InternalServerErrorException('Unknown property ' . $name . ' of type ' . gettype($name) . ' in Entity ' . static::class);
+ }
+
+ return !empty($this->$name);
+ }