Check if switch exists before instanciating it in webNodeRegister