check for existence of switches obj before checking it
0.4.21