/** * Determine if the type is an actual extensible data interface. * * @param string $typeName * @return bool */ private function isExtensibleAttributesImplemented($typeName) { try { $this->extensionAttributesFactory->getExtensibleInterfaceName($typeName); return true; } catch (\LogicException $e) { return false; } }