Fix one useless iteration when "name" = "nil" (check the symbol instead)