what about if ($className instanceof AbstractPluginManager) { return true; } ?