Added curly brace for the if/else functions

GCP-10283

Reviewer: Cyrus Casada