Please use curly braces here for the if else.