Same comments here: always put space before `{`, and use an `if` instead of `?`