It is in general good practice to add open and close braces around single-line conditionals. Even though they are optional, it prevents future bugs by developers additional statements without noticing the need to add the curly braces.