Returns whether the object is initialized.
bool $partial Whether partially initialized objects should be considered as initialized:
public function isLazyObjectInitialized(bool $partial = false) : bool { return !isset($this->lazyObjectState) || isset($this->lazyObjectState->realInstance) || Registry::$noInitializerState === $this->lazyObjectState->initializer; }