Move bracket up to end of if statement