removes redundant options merge
checks if the toggle is in a list to avoid setting unnessary classes