Perhaps there should be a check for startKeyword, that it actually is a section name. Otherwise, hasSection(deck, "ZCORN") for example may return true.