The old API, don't know it for the new but it's probably very similar. PHP: if (file_exists(DATA_PATH."plugins/PocketMoney.php"))
A method similar to yours only checks if it exists, but if the plugin is unloaded or renamed, it won't work. PHP: if($this->getServer()->getPluginManager()->getPlugin("PocketMoney") instanceof Plugin) blah();