Style suggestion: add braces to root foreach.