Use curlies for conditional

This style is less error-prone.