worked on lua translation
added check for empty switch statement