Check to see if switch exists before instantiate it