Revised code for early return if plugin is already available.