Added more necessary {} after single line if