[view] - Update checking for switchOn and switchOff being typeof function #500