Could you add { } for if/else statement ? Our coding standard say to never omit them