check if entity manager configuration is present before activating plugin