#95359Adapt documentation to showcase conditional service dependencies via ContainerBuilder::hasDefinition()
Description
The current recommendation to use ExtensionManagementUtility::isLoaded was never officially supported from the technical point of view:
https://docs.typo3.org/c/typo3/cms-dashboard/master/en-us/Configuration/WidgetRegistration.html#services-php-file
Therefore proper stateless container-builder checks via `hasDefinition()` should be encouraged instead.
Also see https://review.typo3.org/c/Packages/TYPO3.CMS/+/71214 for an explanation for alternatives.