This check is already done by module.exports.uninstallPlugin. Why is it necessary again here?