Adding braces around if statement in SettingsViewController