adding { } to an if statement to match checkstyle rules