[IMP] Move check in switch to top