Moving to isset to check for plugin directory