Missing curly in if statement. Causing parse error.