Refactor slightly
Refactor slightly

Check for the empty-key special case in the first loop,
not the second.

chillbear/pytest,pfctdayelise/pytest,rouge8/pytest,ericdill/pytest,pytest-dev/pytest,gabrielcnr/pytest,tomviner/pytest,flub/pytest,wfxiang08/pytest,icemac/pytest,codewarrior0/pytest,ericdill/pytest,takluyver/pytest,JonathonSonesen/pytest,RonnyPfannschmidt/pytest,chillbear/pytest,icemac/pytest,The-Compiler/pytest,omarkohl/pytest,codewarrior0/pytest,omarkohl/pytest,mdboom/pytest,inirudebwoy/pytest,lukas-bednar/pytest,Bachmann1234/pytest,etataurov/pytest,ionelmc/pytest,bukzor/pytest,ropez/pytest,MengJueM/pytest,jb098/pytest,skylarjhdownes/pytest,MichaelAquilina/pytest,alfredodeza/pytest,ddboline/pytest,ionelmc/pytest,mbirtwell/pytest,jaraco/pytest,hunse/pytest,Bachmann1234/pytest,wfxiang08/pytest,doordash/pytest,oleg-alexandrov/pytest,chiller/pytest,jb098/pytest,takluyver/pytest,malinoff/pytest,ghostsquad/pytest,userzimmermann/pytest,tgoodlet/pytest,txomon/pytest,Akasurde/pytest,userzimmermann/pytest,gabrielcnr/pytest,rmfitzpatrick/pytest,oleg-alexandrov/pytest,nicoddemus/pytest,lukas-bednar/pytest,nicoddemus/pytest,tareqalayan/pytest,hackebrot/pytest,pelme/pytest,MengJueM/pytest,mhils/pytest,Bjwebb/pytest,davidszotten/pytest,The-Compiler/pytest,doordash/pytest,ghostsquad/pytest,rouge8/pytest,markshao/pytest,vodik/pytest,chiller/pytest,pelme/pytest,vodik/pytest,vmalloc/dessert,hunse/pytest,mdboom/pytest,eli-b/pytest,hpk42/pytest,tomviner/pytest,abusalimov/pytest,untitaker/pytest,Haibo-Wang-ORG/pytest,untitaker/pytest,hpk42/pytest,mhils/pytest,abusalimov/pytest,mbirtwell/pytest,Bjwebb/pytest,JonathonSonesen/pytest,Haibo-Wang-ORG/pytest,bukzor/pytest,ropez/pytest,ojake/pytest,inirudebwoy/pytest,ojake/pytest