How to check if a Magento 2 module has been successfully installed
To check if your Magento 2 module has been successfully installed, use the following code:
This is the most convenient method among available now.

More tips from Magento 2 Developer’s Cookbook
