isObjectValid($this); } catch (ReflectionException) { return false; } } public function toArray(): array { return get_object_vars($this); } }