Put curly braces around the if and else bodies since this is a pretty long statement