I added Plugin in bootstrap.php . So how did I check plugin loaded or not?
You can use Plugin::loaded('MyPlugin');
or use the shell to see what has been loaded:
# show all loaded plugins
bin/cake plugin loaded
# check for specific plugin (nix)
bin/cake plugin loaded | grep MyPlugin