Put if statement into curly brackets.