Add missing curly braces around if's.