I would put everything on the same line with a ternary operator, but that's not mandatory.