Will retain added switch in the overlay
Check if switchId is a hash before applying an overlay