Fix: check for empty section never worked due to comparison of string and integer