Added check for getPlugins