I currently retrieve if a plugin is installed like this:
$adyenPlugin = $this->pluginRepository->search(
(new Criteria())->addFilter(new EqualsFilter('name', self::ADYEN_PAYMENT_PLUGIN_NAME)),
Context::createDefaultContext(),
)->first();
if (!$adyenPlugin || null === $adyenPlugin->get('installedAt')) {
return new TableCollection(...$tables);
}
Is there a better and more straightforward way to do this?