From ccd1be5f092deac42e687d31751df27524e12f78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Aug 2025 03:09:11 +0200 Subject: [PATCH] Continued: - added method isHelperInstanceSet() --- framework/main/traits/helper/class_HelperTrait.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework/main/traits/helper/class_HelperTrait.php b/framework/main/traits/helper/class_HelperTrait.php index b95179b7..df3ccc36 100644 --- a/framework/main/traits/helper/class_HelperTrait.php +++ b/framework/main/traits/helper/class_HelperTrait.php @@ -52,4 +52,13 @@ trait HelperTrait { return $this->helperInstance; } + /** + * Checks whether a helper instance is set + * + * @return $isset Whether a helper instance is set + */ + public final function isHelperInstanceSet (): bool { + return ($this->helperInstance instanceof Helper); + } + } -- 2.39.5