Can use a ternary operator (`?` and `:`) to make this much more compact.