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