You'll need to add braces around this block for it to be contained inside the conditional.