Maybe change to `else if ([allSettings count] == 1)` ? ...