Unique class names before removing all, remove separate validation method in favor of inline class_exists