Check that the settings tab isn't empty before looping through it