setting[0] always exists in a null-terminated string. If the length is 0, setting[0] is '\0'.