Move bracket up to end of if else statement