fix switch checking
Merge branch 'master' of github.com:guardian/frontend