test for nil powerswitch