fix roots_fix_duplicate_subfolder_urls isset check
fix roots_fix_duplicate_subfolder_urls isset check

function checked if $matches[1] & $matches[2] were set, but next line operates on $matches[1][0] & $matches[2][0], so under certain circumstances, you get the following Notice: Undefined offset: 0.

Now it checks for the [0] offsets from the start.
decapyre/sage,maintainweb/morrisons-jewelry,brainmangv/sage,InPulseDigital/marymar,gelli/stonyray,tmingos/sassy-roots,MikeiLL/black_sage_theme,dguardia/testsage,streetcoder/rootio-gulp,openstate/tcampeu-theme,evanfuture/thyme,Nomad-Pals/Cascadia-Theme,wprtl/sage-rtl,tracyapps/web2,moetw/blog,nomad-mystic/nomadmystic,noplanman/sage-wpcs,jamessonbros/smokymtn-theme,oscarsmeulders/sage,MikeiLL/poman,ChrisLTD/sage,filippoferri/oct172014,openstate/tcampeu-theme,sacredwebsite/sage,CFERepo/cfe,ThemeSurgeon/sage,laras126/suya-theme,gianthat/sage,gabzon/dancefloor,WenderHost/pmd-sage-theme,safetycat/catsage,smutek/BourbonySage,Maximoo/sage,eggandpig/shellandclove,Ninir/roots,achoukah/trevors_head,collapsedwave/stratacore-roots,randybondsjr/city-of-yakima-wp-theme-2015,fusionpig/sage,gopperman/fader-theme,gabzon/dancefloor,Foxaii/sage,psteinweber/Kanso-Theme,gabzon/voxmusica,ryoenji/sage,diZturbio/CM-roots,renddrew/sage_cstm,jloosli/shoestrap-3,nimi/nlm-theme,gabzon/experiensa,honisoit/huntingslow,MikeiLL/pure-demo,JohnBueno/jw,tracyapps/sss,wesm87/sage,tracyapps/sss,ColinWaddell/roots-cwdc,fikinitiative/pith,filippoferri/oct262014,wespiper/skar,romapad/sound-themplate,gianthat/sage,BurfieldCreative/sage,Internetmonkey/paradisegardens,jeremystrom/sage,mubassirhayat/roots,templesmc/tuupdate,ryanschilling/synergy,trevoristall/quillflow,evanfuture/thyme,markthethomas/grand-adventure,maintainweb/passione-pizza,DesignPond/praticien_theme,vonkanehoffen/sage,BiotechFeedback/wordpress-theme,code4sac/brigade-theme,fingerpaintmarketing/sage,drrobotnik/roots,nbranzburg/iconsult,hypothesis/wordpress-theme-hypothesis,zNiik/jsour,thewellmetgroup/theme,teaguecnelson/tn-tellis-bds,gabzon/sevinci-agency,jcummings/MarshallU-Wordpress-Roots-Theme,Anunatak/anunastart,MikeiLL/mZoo-wp-theme,oxxido/bizop,commandante567/bugs,nonstndrd/nonstndrd,kreapress/jaechicks-site,daryltulay/vrcwebsite,gabzon/sevinci-sage-2,thewellmetgroup/theme,codeclimate-testing/sage,Internetmonkey/d1,drrobotnik/roots,jcummings/MarshallU-Wordpress-Roots-Theme,nickdotreid/nickreidcom-2015,danpliego/sage,herus02/barbaruiva-theme,elihubogan/roots,rniswonger/sage,gkmurray/sage,jchck/jaechicks-site,maintainweb/ramprateinfo,hphioolen/SinglePage1,randybondsjr/city-of-yakima-wp-theme-2015,IQ2022/sage,scottrblock/roots-aie,jamessonbros/apexdetailing-theme,maintainweb/jamacor,spokencode/OneStream,miukimiu/sage-meninasgeeks,Maximoo/sage,gabzon/spoutnik,gopperman/fader-theme,rniswonger/sage,theportlandcompany/shoestrap-3,cadr-sa/shoestrap-3,teaguecnelson/tn-tellis-bds,craiglthompson1990/maps,idies/escience-2016-wp-theme,mohitkr05/socialy,ColinWaddell/lang-roots,zacwasielewski/wobbler,ClimateFeedback/wordpress-theme,jloosli/shoestrap-3,Edvardoh/EctomorphTheme,MikeiLL/MaterialSage,gabzon/rosabrux,aaronkelch/sage,AnthonyTurrigiano/sage,matchboxdesigngroup/mdg-base-2014,ryanschilling/roots-dummy,cmkshaw/colin-smith,vonkanehoffen/fieldarm,k33n/sage,zacwasielewski/mccauley,gkmurray/sage,skemantix/sage,westhechiang/nsk,Decisionary/blr-base-theme,adrianstaniloiu/sage,achoukah/trevors_head,barrychampion/hgplantsales,gabzon/clochette,JulienMelissas/sage,valenciafg/guanaima-theme,robbintt/sage,gabzon/experiensa-website,mikifus/sage,elihubogan/roots,MikeiLL/mZoo-wp-theme,austinpray/sage,bkahlert/sage-base,kevinreilly/wordpress,romapad/sound-themplate,UWAA/dawgdash2014,generoi/sage,ryanschilling/roots-dummy,bezbeli/cisteliste,Tmeister/wp-roots-base-theme,PCHC/pharmacyresidency2017,UWAA/dawgdash2014,ryoenji/sage,mikifus/sage,MikeiLL/cstewart,Comunitas/JuntosWPTheme,Zaturrby/simulacrum-sage,gkealy/tfmhsite,Edvardoh/EctomorphTheme,shoestrap/shoestrap-3,ericimthorn/sage,renddrew/sage_cstm,PCHC/pchc-board,roots/sage,sengeezer/sassy-roots,CFERepo/cfe,jwkicklighter/salon-vo-sage,maintainweb/milesmarketeer,blackjak231/ag4l_roots,tombaro/linje19-theme,fingli/sage,kreapress/jaechicks-site,rovak73/sage,theportlandcompany/shoestrap-3,matchboxdesigngroup/mdg-base,megryll/davielaw,dsa821/mgoblog,maintainweb/ramprateinfo,Dedato/dedato,Internetmonkey/paradisegardens,ericimthorn/sage,MikeiLL/bludog,noskov/sage,nickkos101/thezoo,dbhynds/sage,MikeiLL/cstewart,shantanugautam/wp-gulp-theme,aitormendez/506,c50/c50_roots,pennm018/roots,mikeyspice/the-fritz-custom,tripl3inf/WordPlay-Theme,davado/sage,razordaze/cutter,jnettome/ato-theme,jwkicklighter/salon-vo-sage,MikeiLL/HealthyHappyHarmony,aspsomerville/roots-SR,fingli/sage,MikeiLL/HealthyHappyHarmony,tylertravitz/atlas,bobderrico80/sage,kellygrape/pfca,nickkos101/thezoo,psorensen/TBC-Theme,zacwasielewski/mccauley,DocWatson/roots,dboune/sage,kalenjohnson/sage,t0t/annafont,kellygrape/pfca,tbbooher/cffc2,tripl3inf/WordPlay-Theme,c50/c50_roots,DoersGuild/wp-roots-woocommerce,aaronkelch/sage,nomad-mystic/nomadmystic,memuller/benedict_theme-old,k33n/sage,heedfull/ClionaJoyce,maintainweb/passione-pizza,bmoredrew/sage,PCHC/pediatrics,wolfgangcode/wrangel,bobderrico80/sage,boskakke/sage-bt,adelcasse/delcasse_fr,dynamick/wpstartboostrap,fabiowitt/sage,MManifesto/sage,Dedato/dedato,filippoferri/sep292015,jdcauley/roots-with-foundation,scottrblock/roots-aie,ChrisLTD/sage,dstockdale/pps_roots,eddieospaghettio/qure,MikeiLL/cstewart,mupi/atlasmedialab,BiotechFeedback/wordpress-theme,schikulski/Gromf,ramjack/rjfs-franchise-old,simmerdesign/roots-6.5.2,digitalmediaproduction/oncology-roots,dmassiani/loots,mAAdhaTTah/gromf,sciserver/SciServer-WordPress-Theme,ptrckvzn/sage,streetcoder/rootio-gulp,ClimateFeedback/wordpress-theme,gbarberi/sage,dynamick/wpstartboostrap,Kilbourne/melarido,NateLSpence/serverus,electronspin/hadron,kellygrape/kapipe-roots,ddanh85/dpsage,danpliego/sage,joshua-chavanne/laudable-info-refresh,MikeiLL/New_Cool_Theme,leoj3n/roots,Kilbourne/melarido,blackjak231/ag4l_roots,ivan-shulev/despreneur-academy,gabzon/sevinci-sage,eatrero/cordova,obelis/premium-real-estate-theme,tormjens/anunablade,PCHC/PCHC2016,jcummings/MarshallU-Wordpress-Roots-Theme,Bridgton-Academy/ba-roots,thenewblk/mahamusicfestival,MikeiLL/MaterialSage,gabzon/experiensa-website,templesmc/tuupdate,heedfull/ClionaJoyce,heedfull/ClionaJoyce,zNiik/jsour,PCHC/ccpm,leoken/SoHE,chaddanna/jenna-portfolio,filippoferri/oct262014,hypothesis/wordpress-theme-hypothesis,codeclimate-testing/sage,nickdotreid/nickreidcom-2015,leoken/leoken,nimi/nlm-theme,moetw/blog,windeck/theme,kevinlisota/roots,kevinlisota/roots,gabzon/experiensa,jnettome/ato-theme,dboune/sage,eversoclever/medium,jmpdv/sage,mattrothenberg/abxy,AnthonyTurrigiano/sage,jeffsee55/mdl-sage,awanderingorill/the-brm,gabzon/fiesta-travel,NicBeltramelli/sage,jhotovy/refined,gabzon/dancefloor,Luandro-com/Amor,mckelvey/sage,PaidSites/sage,drrobotnik/roots,palpalani/sage,Cleifai/tema_wp_roots,gabzon/personal-webapp,adelcasse/delcasse_fr,tmingos/sassy-roots,christopherbruce/christopher-sage,muhamadsyahril/themes-sage-master,rovak73/sage,PCHC/hopehouse,electronspin/hadron,matchboxdesigngroup/mdg-base,dmassiani/loots,noskov/sage,smutek/BourbonySage,ivgalic/galibugs-theme,ItAintTalon/Moments,eversoclever/medium,gabzon/sevinci-sage-2,LibLogic/DSS,mykepreuss/roots,Iamronan/sage,Zaturrby/simulacrum-sage,Dedato/dedato,01walid/roots,gabzon/sevinci-sage-2,maintainweb/ramprate,generoi/sage,tbbooher/cffc2,adrianstaniloiu/sage,wprtl/sage-rtl,antzucaro/roots,MikeiLL/poman,MikeiLL/mZoo-wp-theme,hermanbanken/wp-theme-excelsior,levito/kleineweile-wp-theme,skemantix/sage,zyre91/thezooguild,wajatimur/gtable-wptheme,jamessonbros/apexdetailing-theme,bostondv/roots,gabzon/sevinci-sage,gabzon/voxmusica,antzucaro/roots,littlesumo/sage,kellygrape/mazeppa-roots,sdphp/sdphp.org-WP-theme,sdphp/sdphp.org-WP-theme,smutek/BourbonySages-Rex,razordaze/cutter,bigwilliam/roots-reloaded,HYPD/sagetest,c50/c50_roots,JesusisFreedom/sage,PCHC/dentalresidency,theGuruWithin/neo,oscarsmeulders/sage,westhechiang/nsk,rku4er/nielsendesign-wp,roots/sage,barrychampion/hgplantsales,jlmaners/pbc-media,jlm2017/theme-wp,dsa821/phyllissadesign,DelftscheStudentenBond/dsb-template,gelli/stonyray,LibLogic/DSS,themagicalboy/iddo,chmaltsp/My-Choice-Theme,iboss-ptk/cuse_theme,eggandpig/ihateblonde,nbranzburg/iconsult,willenglishiv/funnelactive-apply,PCHC/dentalresidency,CFERepo/cfe,arikan/yereldemok,tracyapps/sss,sengeezer/sassy-roots,spokencode/My-Roots-Starter-Theme,webrain/yellowtree,trevoristall/quillflow,theGuruWithin/neo,jcarignan/sage,safetycat/catsage,nickdotreid/healthdesignbyus-wordpress-theme,valenciafg/guanaima-theme,nonstndrd/nons_roots,ChrisLTD/sage,girl-elvis/gamesage,tracyapps/ruth,jlmaners/pbc-media,arikan/yereldemok,masoninthesis/seaside-new,Nomad-Pals/Cascadia-Theme,jhotovy/refined,gausie/jewdas.org,shantanugautam/wp-gulp-theme,leoken/SoHE,gabzon/sevinci-agency,jeremystrom/sage,NicBeltramelli/sage,t0t/annafont,tormjens/anunablade,eatrero/atrero2015,jeffsee55/sage-runfurman,jchck/jchck_,leoken/leoken,blinkpi/biper,idies/escience-2016-wp-theme,ChrisLTD/sage,ptrckvzn/sage,electronspin/sage-f6,Soutar/ward,zacwasielewski/inlet-wedding,markthethomas/grand-adventure,jlm2017/theme-wp,Iamronan/sage,wespiper/skar,ucarmetin/reen,bezbeli/cisteliste,daaveuk/glasseye,jfmacdonald/parsley,daaveuk/glasseye,Decisionary/blr-base-theme,islamx/mine,maintainweb/maintain.la,leoj3n/roots,zacwasielewski/inlet-wedding,avioli/roots,ptrckvzn/sage,Inggo/Sola,chuckn246/sage-foundation-sites,MManifesto/sage,eggandpig/shellandclove,bkahlert/sage-base,m6r/wp-themev2,masoninthesis/seaside-new,topecz/roots,MikeiLL/HealthyHappyHarmony,obelis/faith-motorsports-theme,agusgarcia/sage9,WenderHost/pmd-sage-theme,awanderingorill/the-brm,PCHC/pharmacyresidency2017,sengeezer/sassy-roots,nicholaslmitchell/nlm-theme,fusionpig/sage,robbintt/sage,kalenjohnson/sage,tombaro/linje19-theme,mikaelmattsson/sage,jasonbutler42/grillinfools-theme,jchck/jchck_,mattrothenberg/abxy,MiquelAdell/blueprint,islamx/mine,ivgalic/galibugs-theme,jchck/jaechicks-site,filippoferri/sep292015,generoi/sage,cudim/pages-theme,vonkanehoffen/fieldarm,ColinWaddell/lang-roots,ItAintTalon/Moments,NateLSpence/serverus,maintainweb/jamacor,code4sac/brigade-theme,kalenjohnson/sage,blinkpi/biper,craiglthompson1990/maps,drewwestphal/connect-theme,johnsolarz/sage-modular,puterakahfi/sage,chmaltsp/My-Choice-Theme,cyeph/demo,wolfgangcode/wrangel,sacredwebsite/sage,dsa821/phyllissadesign,leoken/codathedog,git-e-up/saucy-theme,zacwasielewski/sage-customized,PCHC/ccpm,zacwasielewski/wobbler,Cleifai/tema_wp_roots,jcarignan/sage,mubassirhayat/roots,Ninir/roots,maintainweb/thelarman,dguardia/testsage,Decisionary/blr-base-theme,firebelly/fb-sage,ramjack/rjfs-franchise-old,johnsolarz/modular,democracy-os-fr/sage,themagicalboy/iddo,tmingos/sassy-roots,gabzon/fiesta-travel,ekandreas/sage-material-design,PCHC/hopehouse,CAYdenberg/sage,jeffsee55/mdl-sage,johnsolarz/sage,tracyapps/ruth,DoersGuild/wp-roots-woocommerce,gkmurray/sage,gabzon/experiensa-website,AmosFord/fordsage,dsa821/mgoblog,laras126/suya-theme,joshua-chavanne/laudable-info-refresh,avioli/roots,kellygrape/kapipe-roots,mAAdhaTTah/gromf,sinnwerkstatt/sinn-sage,johnsolarz/sage,bigwilliam/roots-reloaded,entr/sage,dstockdale/pps_roots,JulienMelissas/sage,mohitkr05/socialy,nomad-mystic/nomadmystic,lantern-creative/sage,miukimiu/sage-meninasgeeks,commandante567/bugs,Tmeister/vallein,gausie/jewdas.org,boskakke/sage-bt,lantern-creative/sage,iboss-ptk/cuse_theme,gabzon/clochette,pennm018/roots,gabzon/sevinci-agency,jeffsee55/sage-runfurman,kab2512/sage,nonstndrd/nonstndrd,elenago/fik-vinila,maintainweb/maintain.la,wajatimur/gtable-wptheme,Kilbourne/melarido,bfillmer/roots,willenglishiv/funnelactive-apply,10w042/roots,NicBeltramelli/sage,entr/sage,MikeiLL/New_Cool_Theme,psorensen/TBC-Theme,ramjack/wp-theme-landing-page,puterakahfi/sage,aitormendez/506,muhamadsyahril/themes-sage-master,drewrawitz/wp-theme,PCHC/hopehouse,ColinWaddell/fish-roots,thenewblk/mahamusicfestival,nsrosenqvist/sage,bmoredrew/sage,Bridgton-Academy/ba-roots,jloosli/shoestrap-3,Soutar/ward,spokencode/My-Roots-Starter-Theme,rku4er/rks-wp,tripl3inf/BulbsOnly-v2,eatrero/cordova,sciserver/gluseen_wp_theme,ucarmetin/reen,mernor/teszt_roots,nonstndrd/nons_roots,filippoferri/oct172014,tylertravitz/atlas,skemantix/sage,adelcasse/gaucheunie-wordpress-theme,ryanschilling/synergy,BurfieldCreative/sage,fingerpaintmarketing/sage,dbhynds/sage,JohnBueno/jw,digitalmediaproduction/oncology-roots,drewwestphal/connect-theme,MikeiLL/black_sage_theme,agusgarcia/sage9,herus02/barbaruiva-theme,eatrero/atrero2015,DesignPond/praticien_theme,leoken/eriksportfolio,simmerdesign/roots-6.5.2,Tmeister/wp-roots-base-theme,glocalcoop/anp-network-main-redux,democracy-os-fr/sage,ivan-shulev/despreneur-academy,eggandpig/shellandclove,oxxido/bizop,austinpray/sage,m6r/wp-themev2,decapyre/sage,tracyapps/web2,barnyp/sage,gkmurray/sage,PCHC/pediatrics,matchboxdesigngroup/mdg-base-2014,PCHC/PCHC2016,Tmeister/vallein,jessicahawkins3344/squarely,nomad-mystic/nomadmystic,apexskier/nodm-wp-theme,ColinWaddell/roots-cwdc,Internetmonkey/d1,elenago/fik-vinila,simulacrum-amsterdam/simulacrum-sage,collapsedwave/stratacore-roots,democracy-os-fr/sage,windeck/theme,Internetmonkey/d1,kab2512/sage,mckelvey/sage,jamessonbros/smokymtn-theme,bobderrico80/nymb-v2,agusgarcia/sage9,bostondv/roots,wmurphy/fik-vinila,noplanman/sage-wpcs,CAYdenberg/sage,Inggo/Sola,daryltulay/vrcwebsite,thenewblk/mahamusicfestival,psteinweber/Kanso-Theme,zyre91/thezooguild,PaidSites/sage,AmosFord/fordsage,mikeinthesis/jackalope,spokencode/OneStream,IQ2022/sage,matchboxdesigngroup/mdg-base-2014,firebelly/fb-sage,kevinreilly/wordpress,sciserver/gluseen_wp_theme,johnsolarz/sage-modular,chuckn246/sage-foundation-sites,InPulseDigital/marymar,mikeinthesis/jackalope,templesmc/tuupdate,tttanaka/sage,ramjack/wp-theme-landing-page,ddanh85/dpsage,maintainweb/ramprate,MikeiLL/pure-demo,glocalcoop/anp-network-main-redux,cmkshaw/colin-smith,memuller/benedict_theme-old,nicholaslmitchell/nlm-theme,fikinitiative/fodd,sengeezer/sassy-roots,drewrawitz/wp-theme,mckelvey/sage,webrain/yellowtree,haruair/haruair,hphioolen/SinglePage1,wmurphy/fik-vinila,honisoit/huntingslow,gabzon/spoutnik,leoken/eriksportfolio,MikeiLL/pure-demo,burbridgeconsulting/roots,girl-elvis/gamesage,dstockdale/pps_roots,teaguecnelson/tn-tellis-bds,smutek/BourbonySages-Rex,PCHC/pchc-board,haruair/haruair,topecz/roots,PCHC/pharmacyresidency2017,evanfuture/thyme,obelis/premium-real-estate-theme,troymcginnis/Gromf-Fork,BurfieldCreative/sage,DelftscheStudentenBond/dsb-template,git-e-up/saucy-theme,cyeph/demo,brainmangv/sage,IPMM/ipaintmymind,Anunatak/anunastart,chaddanna/jenna-portfolio,viettruong2194/quochoc55-58,tracyapps/web2,nomad-mystic/nomadmystic,cadr-sa/shoestrap-3,hermanbanken/wp-theme-excelsior,bigwilliam/sage-extended,DocWatson/roots,rku4er/nielsendesign-wp,IPMM/ipaintmymind,viettruong2194/quochoc55-58,tttanaka/sage,bigwilliam/sage-extended,mupi/atlasmedialab,levito/kleineweile-wp-theme,gkealy/tfmhsite,Luandro-com/Amor,aspsomerville/roots-SR,diZturbio/CM-roots,kellygrape/mazeppa-roots,megryll/davielaw,leoken/codathedog,maintainweb/milesmarketeer,eggandpig/ihateblonde,vonkanehoffen/sage,bfillmer/roots,jmpdv/sage,gabzon/personal-webapp,ClimateFeedback/wordpress-theme,bobderrico80/nymb-v2,burbridgeconsulting/roots,10w042/roots,rku4er/rks-wp,maintainweb/morrisons-jewelry,barnyp/sage,jfmacdonald/parsley,davidbunce/david-bunce-2015,MikeiLL/bludog,HYPD/sagetest,gabzon/rosabrux,littlesumo/sage,nickdotreid/healthdesignbyus-wordpress-theme,jessicahawkins3344/squarely,johnsolarz/modular,MikeiLL/bludog,aspsomerville/roots-SR,mikaelmattsson/sage,christopherbruce/christopher-sage,JesusisFreedom/sage,nonstndrd/nonstndrd,gbarberi/sage,sacredwebsite/sage,megryll/davielaw,grex22/bookflipper,troymcginnis/Gromf-Fork,ezl/roots.io,shoestrap/shoestrap-3,sciserver/SciServer-WordPress-Theme,ThemeSurgeon/sage,cudim/pages-theme,Tmeister/wp-roots-base-theme,gabzon/experiensa,zelimir83/sage,obelis/faith-motorsports-theme,LechDutkiewicz/dinksy,mikeyspice/the-fritz-custom,palpalani/sage,simmerdesign/roots-6.5.2,ekandreas/sage-material-design,Comunitas/JuntosWPTheme,MikeiLL/MaterialSage,apexskier/nodm-wp-theme,JulienMelissas/sage,fikinitiative/fodd,maintainweb/thelarman,ColinWaddell/fish-roots,schikulski/Gromf,zelimir83/sage,simulacrum-amsterdam/simulacrum-sage,levito/kleineweile-wp-theme,matchboxdesigngroup/mdg-base,tripl3inf/BulbsOnly-v2,LechDutkiewicz/dinksy,fikinitiative/pith,jasonbutler42/grillinfools-theme,01walid/roots,davado/sage,jdcauley/roots-with-foundation,eddieospaghettio/qure,wesm87/sage,nomad-mystic/nomadmystic,ezl/roots.io,MikeiLL/poman,commandante567/bugs,gabzon/fiesta-travel,mernor/teszt_roots,nsrosenqvist/sage,davidbunce/david-bunce-2015,fabiowitt/sage,JohnBueno/jw,grex22/bookflipper,gabzon/spoutnik,sinnwerkstatt/sinn-sage,Foxaii/sage,electronspin/sage-f6,MiquelAdell/blueprint,zacwasielewski/sage-customized,adelcasse/gaucheunie-wordpress-theme