Check if hasType is being called with an undefined argument.
Check if hasType is being called with an undefined argument.

Previously, it would return true if the Pokémon only had one type.

Articuno-I/Pokemon-Showdown,Pikachuun/Pokemon-Showdown-SMCMDM,SerperiorBae/Bae-Showdown,SerperiorBae/Bae-Showdown-2,Guernouille/Pokemon-Showdown,LegendBorned/PS-Boilerplate,kuroscafe/Paradox,Firestatics/Firestatics46,BlakJack/Kill-The-Noise,Irraquated/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,MayukhKundu/Technogear-Final,ZestOfLife/PSserver,brettjbush/Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,LegendBorned/PS-Boilerplate,CharizardtheFireMage/Showdown-Boilerplate,SkyeTheFemaleSylveon/Pokemon-Showdown,piiiikachuuu/Pokemon-Showdown,FakeSloth/wulu,Volcos/SpacialGaze,comedianchameleon/servertest1,sirDonovan/Pokemon-Showdown,Celecitia/Plux-Pokemon-Showdown,Elveman/RPCShowdownServer,AustinXII/Pokemon-Showdown,SerperiorBae/Bae-Showdown,ScottehMax/Pokemon-Showdown,lFernanl/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,EmmaKitty/Pokemon-Showdown,ZeroParadox/BlastBurners,Pablo000/aaa,Nineage/Origin,UniversalMan12/Universe-Server,KewlStatics/Showdown-Template,BuzzyOG/Pokemon-Showdown,Atwar/server-epilogueleague.rhcloud.com,Firestatics/omega,catanatron/pokemon-rebalance,Raina4uberz/Light-server,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,Kevinxzllz/PS-Openshift-Server,MeliodasBH/Articuno-Land,zek7rom/SpacialGaze,JennyPRO/Jenny,forbiddennightmare/Pokemon-Showdown-1,Alpha-Devs/OmegaRuby-Server,svivian/Pokemon-Showdown,HoeenCoder/SpacialGaze,Lord-Haji/SpacialGaze,kupochu/Pokemon-Showdown,hayleysworld/harmonia,Stroke123/POKEMON,comedianchameleon/test,danpantry/Pokemon-Showdown,Extradeath/advanced,TheManwithskills/DS,TheManwithskills/New-boiler-test,Darkshadow6/PokeMoon-Creation,LightningStormServer/Lightning-Storm,KewlStatics/Shit,Kill-The-Noise/BlakJack-Boilerplate,panpawn/Gold-Server,xfix/Pokemon-Showdown,urkerab/Pokemon-Showdown,lFernanl/Mudkip-Server,yashagl/yash-showdown,ZeroParadox/ugh,Flareninja/Sora,kuroscafe/Paradox,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,Irraquated/Showdown-Boilerplate,PrimalGallade45/Dropp-Pokemon-Showdown,AWailOfATail/awoat,ZestOfLife/FestiveLife,Ecuacion/Lumen-Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,Stroke123/POKEMON,psnsVGC/Wish-Server,Darkshadow6/PokeMoon-Creation,SolarisFox/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,ehk12/clone,yashagl/pokemon-showdown,MayukhKundu/Technogear,SkyeTheFemaleSylveon/Mudkip-Server,UniversalMan12/Universe-Server,RustServer/Pokemon-Showdown,Guernouille/Pokemon-Showdown,anubhabsen/Pokemon-Showdown,miahjennatills/Pokemon-Showdown,k3naan/Pokemon-Showdown,gustavo515/gashoro,javi501/Lumen-Pokemon-Showdown,PS-Spectral/Spectral,hayleysworld/Showdown-Boilerplate,VoltStorm/Server-pokemon-showdown,AvinashSwaminathan/Pokelegends,JellalTheMage/PS-,HoeenCoder/SpacialGaze,QuiteQuiet/Pokemon-Showdown,SkyeTheFemaleSylveon/Mudkip-Server,FakeSloth/Infinite,Lord-Haji/SpacialGaze,Gold-Solox/Pokemon-Showdown,Mystifi/Exiled,SSJGVegito007/Vegito-s-Server,LustyAsh/EOS-Master,FakeSloth/Infinite,hayleysworld/serenity,svivian/Pokemon-Showdown,arkanox/MistShowdown,zczd/enculer,kupochu/Pokemon-Showdown,asdfghjklohhnhn/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,MayukhKundu/Mudkip-Server,ShowdownHelper/Saffron,svivian/Pokemon-Showdown,PauLucario/LQP-Server-Showdown,BlazingAura/Showdown-Boilerplate,InvalidDN/Pokemon-Showdown,superman8900/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,BadSteel/Omega-Pokemon-Showdown,sama2/Universe-Pokemon-Showdown,Enigami/Pokemon-Showdown,Lauc1an/Perulink-Showdown,SSJGVegito007/Vegito-s-Server,Breakfastqueen/advanced,miahjennatills/Pokemon-Showdown,Luobata/Pokemon-Showdown,MayukhKundu/Technogear,Pablo000/aaa,Flareninja/Pokemon-Showdown-1,Flareninja/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,NoahVSGamingYT/Pokemon-Showdown,Legendaryhades/Oblivion,SerperiorBae/Pokemon-Showdown-1,arkanox/MistShowdown,bai2/Dropp,DesoGit/Tsunami_PS,Neosweiss/Pokemon-Showdown,NoahVSGamingYT/Pokemon-Showdown,Zarel/Pokemon-Showdown,PrimalGallade45/Lumen-Pokemon-Showdown,Disaster-Area/Pokemon-Showdown,hayleysworld/Pokemon-Showdown,Adithya4Uberz/The-Tsunami-League,Firestatics/omega,Vacate/Pokemon-Showdown,Atwar/server-epilogueleague.rhcloud.com,Legit99/Lightning-Storm-Server,urkerab/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,iFaZe/SliverX,Pikachuun/Pokemon-Showdown-SMCMDM,Irraquated/EOS-Master,TheManwithskills/Creature-phil-boiler,Oiawesome/DPPtServ2,Flareninja/Pokemon-Showdown-1,SerperiorBae/BaeShowdown,Kevinxzllz/PS-Openshift-Server,jd4564/Pokemon-Showdown,Tesarand/Pokemon-Showdown,KewlStatics/Pokeindia-Codes,Sora-League/Sora,danpantry/Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,Yggdrasil-League/Yggdrasil,SerperiorBae/BaeShowdown,TheDiabolicGift/Showdown-Boilerplate,EienSeiryuu/Pokemon-Showdown,panpawn/Gold-Server,MayukhKundu/Flame-Savior,AnaRitaTorres/Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,megaslowbro1/Showdown-Server-again,Adithya4Uberz/The-Tsunami-League,DarkSuicune/Kakuja-2.0,Volcos/SpacialGaze,TbirdClanWish/Pokemon-Showdown,lFernanl/Mudkip-Server,comedianchameleon/servertest1,k3naan/Pokemon-Showdown,panpawn/Gold-Server,Johto-Serverr/Werfin-Boilerplate,KewlStatics/Alliance,jumbowhales/Pokemon-Showdown,anubhabsen/Pokemon-Showdown,Irraquated/EOS-Master,Articuno-I/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,TheManwithskills/Server,Chespin14/Custom-Platform-Pokemon-Showdown,TogeSR/Lumen-Pokemon-Showdown,Raina4uberz/Light-server,xCrystal/Pokemon-Showdown,SilverTactic/Showdown-Boilerplate,TbirdClanWish/Pokemon-Showdown,TheManwithskills/serenity,abulechu/Dropp-Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,DB898/theregalias,gustavo515/batata,RustServer/Pokemon-Showdown,yashagl/pokemon,Fusxfaranto/Pokemon-Showdown,TheManwithskills/COC,Enigami/Pokemon-Showdown,AvinashSwaminathan/lotus-v2,MayukhKundu/Pokemon-Domain,Kokonoe-san/Glacia-PS,ehk12/bigbangtempclone,Ridukuo/Test2,Firestatics/Firestatics46,Ransei1/Alt,KewlStatics/Showdown-Template,CreaturePhil/Pokemon-Showdown,kubetz/Pokemon-Showdown,Sora-League/Sora,DB898/theregalias,Enigami/Pokemon-Showdown,TheManwithskills/Server---Thermal,ZeroParadox/ugh,Ridukuo/Test,TheDiabolicGift/Lumen-Pokemon-Showdown,TheManwithskills/Server,Bryan-0/Pokemon-Showdown,svivian/Pokemon-Showdown,Ransei1/Alt,KaitoV4X/Showdown,ScottehMax/Pokemon-Showdown,lAlejandro22/lolipoop,CharizardtheFireMage/Showdown-Boilerplate,ehk12/bigbangtempclone,comedianchameleon/test,TheManwithskills/Server---Thermal,comedianchameleon/test,MeliodasBH/boarhat,xfix/Pokemon-Showdown,johtooo/PS,gustavo515/final,iFaZe/SilverZ,yashagl/pokemon-showdown,Flareninja/Sora,MasterFloat/LQP-Server-Showdown,megaslowbro1/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,forbiddennightmare/Pokemon-Showdown-1,KewlStatics/Alliance,MayukhKundu/Flame-Savior,LightningStormServer/Lightning-Storm,sama2/Viridian-Pokemon-Showdown,xfix/Pokemon-Showdown,TogeSR/Lumen-Pokemon-Showdown,ZeroParadox/BlastBurners,AWailOfATail/Pokemon-Showdown,lAlejandro22/lolipoop,lFernanl/Zero-Pokemon-Showdown,aakashrajput/Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,Alpha-Devs/OmegaRuby-Server,Nineage/Showdown-Boilerplate,AWailOfATail/awoat,kuroscafe/Showdown-Boilerplate,Legit99/Lightning-Storm-Server,Pikachuun/Pokemon-Showdown,Thiediev/Pokemon-Showdown,DesoGit/Tsunami_PS,Yggdrasil-League/Yggdrasil,KewlStatics/Shit,SerperiorBae/Pokemon-Showdown,Kokonoe-san/Glacia-PS,jumbowhales/Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,DesoGit/TsunamiPS,Enigami/Pokemon-Showdown,zczd/enculer,Celecitia/Plux-Pokemon-Showdown,SerperiorBae/PokemonShowdown2,LightningStormServer/Lightning-Storm,SilverTactic/Dragotica-Pokemon-Showdown,megaslowbro1/Pokemon-Showdown,CrestfallPS/Pokemon-Showdown,MeliodasBH/boarhat,SerperiorBae/BaeShowdown,TheManwithskills/Dusk--Showdown,KewlStatics/Pokeindia-Codes,JennyPRO/Jenny,psnsVGC/Wish-Server,Parukia/Pokemon-Showdown,sama2/Universe-Pokemon-Showdown,SerperiorBae/Bae-Showdown,DarkSuicune/Pokemon-Showdown,Wando94/Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,Sora-Server/Sora,Arcticblast/Pokemon-Showdown,Breakfastqueen/advanced,Evil-kun/Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,Atwar/ServerClassroom,hayleysworld/asdfasdf,TheFenderStory/Showdown-Boilerplate,gustavo515/test,hayleysworld/harmonia,PrimalGallade45/Dropp-Pokemon-Showdown,ShowdownHelper/Saffron,Wando94/Spite,SilverTactic/Pokemon-Showdown,BasedGod7/PH,SerperiorBae/Pokemon-Showdown,megaslowbro1/Showdown-Server-again,Elveman/RPCShowdownServer,SerperiorBae/Bae-Showdown-2,xfix/Pokemon-Showdown,ehk12/coregit,Ridukuo/Test2,Flareninja/Sora,abrulochp/Dropp-Pokemon-Showdown,Zipzapadam/Server,bai2/Dropp,Mystifi/Exiled,CreaturePhil/Showdown-Boilerplate,xCrystal/Pokemon-Showdown,Zarel/Pokemon-Showdown,Pikachuun/Joimmon-Showdown,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,Evil-kun/Pokemon-Showdown,SkyeTheFemaleSylveon/Pokemon-Showdown,Psyientist/Showdown-Boilerplate,Parukia/Pokemon-Showdown,catanatron/pokemon-rebalance,SerperiorBae/Bae-Showdown-2,yashagl/pokemon,azum4roll/Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,Hidden-Mia/Roleplay-PS,Flareninja/Lumen-Pokemon-Showdown,ehk12/coregit,hayleysworld/serenity,UniversalMan12/Universe-Server,Oiawesome/DPPtServ2,azum4roll/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,EmmaKitty/Pokemon-Showdown,Parukia/Pokemon-Showdown,Bryan-0/Pokemon-Showdown,JellalTheMage/Jellals-Server,hayleysworld/serenityc9,Pokemon-Devs/Pokemon-Showdown,Syurra/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,gustavo515/test,panpawn/Pokemon-Showdown,Ecuacion/Lumen-Pokemon-Showdown,Zipzapadam/Server,HoeenCoder/SpacialGaze,Lauc1an/Perulink-Showdown,Sora-Server/Sora,yashagl/yash-showdown,Alpha-Devs/Alpha-Server,Hopenub/Pokemon-Showdown,PS-Spectral/Spectral,DarkSuicune/Kakuja-2.0,MayukhKundu/Mudkip-Server,aakashrajput/Pokemon-Showdown,hayleysworld/serenityserver,TheDiabolicGift/Lumen-Pokemon-Showdown,Wando94/Pokemon-Showdown,hayleysworld/Pokemon-Showdown,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,AbsolitoSweep/Absol-server,Extradeath/psserver,Flareninja/Showdown-Boilerplate,PrimalGallade45/Lumen-Pokemon-Showdown,CorruptedHelix/Pokemon-Showdown,Breakfastqueen/advanced,kubetz/Pokemon-Showdown,Pikachuun/Touhoumon-Showdown,Pikachuun/Joimmon-Showdown,JellalTheMage/PS-,scotchkorean27/Pokemon-Showdown,Checkinator/Pokemon-Showdown,TheManwithskills/Server-2,urkerab/Pokemon-Showdown,javi501/Lumen-Pokemon-Showdown,lFernanl/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,Wando94/Spite,svivian/Pokemon-Showdown,cadaeic/Pokemon-Showdown,Lord-Haji/SpacialGaze,SolarisFox/Pokemon-Showdown,abrulochp/Dropp-Pokemon-Showdown,ZestOfLife/FestiveLife,MasterFloat/LQP-Server-Showdown,hayleysworld/serenityserver,yashagl/pokecommunity,Ecuacion/Pokemon-Showdown,Extradeath/psserver,Mystifi/Exiled,gustavo515/gashoro,Sora-League/Sora,TheManwithskills/Server-2,Pokemon-Devs/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Git-Worm/City-PS,Tesarand/Pokemon-Showdown,MeliodasBH/Articuno-Land,Syurra/Pokemon-Showdown,AustinXII/Pokemon-Showdown,piiiikachuuu/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,JellalTheMage/Jellals-Server,SerperiorBae/PokemonShowdown2,Zarel/Pokemon-Showdown,LustyAsh/EOS-Master,Adithya4Uberz/KTN,Firestatics/Omega-Alpha,kotarou3/Krister-Pokemon-Showdown,CreaturePhil/Pokemon-Showdown,MasterFloat/Pokemon-Showdown,AvinashSwaminathan/lotus,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,CreaturePhil/Showdown-Boilerplate,TheFenderStory/Pokemon-Showdown,Werfin96/Ultimate,asdfghjklohhnhn/Pokemon-Showdown,sama2/Viridian-Pokemon-Showdown,TheManwithskills/serenity,Psyientist/Showdown-Boilerplate,AnaRitaTorres/Pokemon-Showdown,abulechu/Lumen-Pokemon-Showdown,Git-Worm/City-PS,TheManwithskills/DS,Kenny-/Pokemon-Showdown,ZestOfLife/PSserver,DalleTest/Pokemon-Showdown,DalleTest/Pokemon-Showdown,hayleysworld/serenityc9,yashagl/pokecommunity,BadSteel/Pokemon-Showdown,ankailou/Pokemon-Showdown,kuroscafe/Showdown-Boilerplate,lFernanl/Lumen-Pokemon-Showdown,Irraquated/Pokemon-Showdown,TheManwithskills/Server-2,gustavo515/batata,Flareninja/Showdown-Boilerplate,BuzzyOG/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,Irraquated/Showdown-Boilerplate,theodelhay/test,ankailou/Pokemon-Showdown,johtooo/PS,Flareninja/Pokemon-Showdown,InvalidDN/Pokemon-Showdown,theodelhay/test,Disaster-Area/Pokemon-Showdown,zek7rom/SpacialGaze,Extradeath/advanced,xfix/Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,Firestatics/Omega-Alpha,QuiteQuiet/Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,AbsolitoSweep/Absol-server,lFernanl/Lumen-Pokemon-Showdown,MayukhKundu/Technogear-Final,Tesarand/Pokemon-Showdown,PauLucario/LQP-Server-Showdown,abrulochp/Lumen-Pokemon-Showdown,HoeenCoder/SpacialGaze,MasterFloat/Pokemon-Showdown,HoeenKid/Pokemon-Showdown-Johto,sirDonovan/Pokemon-Showdown,ShowdownHelper/Saffron,Nineage/Origin,KaitoV4X/Showdown,DesoGit/Tsunami_PS,Ecuacion/Pokemon-Showdown,Gold-Solox/Pokemon-Showdown,abulechu/Lumen-Pokemon-Showdown,DesoGit/TsunamiPS,ehk12/clone,TheManwithskills/Creature-phil-boiler,Irraquated/Pokemon-Showdown,Atwar/ServerClassroom,lFernanl/Zero-Pokemon-Showdown,Flareninja/Hispano-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown,Flareninja/Hispano-Pokemon-Showdown,TheFenderStory/Pokemon-Showdown,cadaeic/Pokemon-Showdown,xCrystal/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,superman8900/Pokemon-Showdown,jd4564/Pokemon-Showdown,AvinashSwaminathan/lotus-v3,SilverTactic/Pokemon-Showdown,panpawn/Pokemon-Showdown,TheManwithskills/New-boiler-test,Ridukuo/Test,abrulochp/Lumen-Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,CorruptedHelix/Pokemon-Showdown,Vacate/Pokemon-Showdown,gustavo515/final,Hidden-Mia/Roleplay-PS,PS-Spectral/Spectral,Checkinator/Pokemon-Showdown,SilverTactic/Showdown-Boilerplate,AustinXII/Pokemon-Showdown,brettjbush/Pokemon-Showdown,MayukhKundu/Pokemon-Domain,Sora-Server/Sora,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,TheManwithskills/COC,Kill-The-Noise/BlakJack-Boilerplate,Alpha-Devs/Alpha-Server,Flareninja/Lumen-Pokemon-Showdown,hayleysworld/asdfasdf