Check if switch exists before instanciating it in unknownState