You can actually write this in ternary operator form.