Replace the check for the correct input type with more elegant code.
Replace the check for the correct input type with more elegant code.

kevalds51/sympy,meghana1995/sympy,yashsharan/sympy,AunShiLord/sympy,hargup/sympy,drufat/sympy,chaffra/sympy,jamesblunt/sympy,dqnykamp/sympy,skidzo/sympy,atreyv/sympy,aktech/sympy,maniteja123/sympy,drufat/sympy,moble/sympy,shikil/sympy,wanglongqi/sympy,Gadal/sympy,yukoba/sympy,debugger22/sympy,dqnykamp/sympy,wyom/sympy,skidzo/sympy,Mitchkoens/sympy,yashsharan/sympy,bukzor/sympy,moble/sympy,kumarkrishna/sympy,VaibhavAgarwalVA/sympy,skidzo/sympy,AunShiLord/sympy,pandeyadarsh/sympy,liangjiaxing/sympy,Shaswat27/sympy,beni55/sympy,bukzor/sympy,souravsingh/sympy,garvitr/sympy,abhiii5459/sympy,liangjiaxing/sympy,jbbskinny/sympy,skirpichev/omg,Shaswat27/sympy,atsao72/sympy,Gadal/sympy,kaichogami/sympy,Vishluck/sympy,postvakje/sympy,jamesblunt/sympy,Arafatk/sympy,wyom/sympy,chaffra/sympy,ChristinaZografou/sympy,asm666/sympy,saurabhjn76/sympy,beni55/sympy,lindsayad/sympy,Shaswat27/sympy,lindsayad/sympy,kaushik94/sympy,meghana1995/sympy,jerli/sympy,Curious72/sympy,mcdaniel67/sympy,oliverlee/sympy,AunShiLord/sympy,sahmed95/sympy,MechCoder/sympy,atreyv/sympy,wanglongqi/sympy,asm666/sympy,emon10005/sympy,jerli/sympy,madan96/sympy,kaushik94/sympy,iamutkarshtiwari/sympy,MridulS/sympy,grevutiu-gabriel/sympy,hargup/sympy,toolforger/sympy,AkademieOlympia/sympy,sampadsaha5/sympy,diofant/diofant,rahuldan/sympy,sahmed95/sympy,ga7g08/sympy,shikil/sympy,kevalds51/sympy,emon10005/sympy,sahmed95/sympy,pbrady/sympy,toolforger/sympy,meghana1995/sympy,cccfran/sympy,oliverlee/sympy,moble/sympy,saurabhjn76/sympy,VaibhavAgarwalVA/sympy,sunny94/temp,Arafatk/sympy,Designist/sympy,sahilshekhawat/sympy,bukzor/sympy,yukoba/sympy,sampadsaha5/sympy,vipulroxx/sympy,dqnykamp/sympy,MechCoder/sympy,mafiya69/sympy,pbrady/sympy,Mitchkoens/sympy,maniteja123/sympy,ga7g08/sympy,ahhda/sympy,Davidjohnwilson/sympy,abhiii5459/sympy,VaibhavAgarwalVA/sympy,oliverlee/sympy,Curious72/sympy,grevutiu-gabriel/sympy,sunny94/temp,emon10005/sympy,hargup/sympy,Gadal/sympy,vipulroxx/sympy,kaichogami/sympy,abloomston/sympy,iamutkarshtiwari/sympy,farhaanbukhsh/sympy,shipci/sympy,souravsingh/sympy,saurabhjn76/sympy,chaffra/sympy,Curious72/sympy,jbbskinny/sympy,Designist/sympy,AkademieOlympia/sympy,toolforger/sympy,postvakje/sympy,atreyv/sympy,drufat/sympy,kevalds51/sympy,atsao72/sympy,souravsingh/sympy,grevutiu-gabriel/sympy,Sumith1896/sympy,sahilshekhawat/sympy,wanglongqi/sympy,aktech/sympy,garvitr/sympy,maniteja123/sympy,abloomston/sympy,Davidjohnwilson/sympy,mafiya69/sympy,farhaanbukhsh/sympy,abloomston/sympy,MechCoder/sympy,ga7g08/sympy,ChristinaZografou/sympy,shikil/sympy,debugger22/sympy,Titan-C/sympy,sunny94/temp,pbrady/sympy,lindsayad/sympy,jaimahajan1997/sympy,cccfran/sympy,beni55/sympy,vipulroxx/sympy,sahilshekhawat/sympy,rahuldan/sympy,cswiercz/sympy,Titan-C/sympy,rahuldan/sympy,mcdaniel67/sympy,MridulS/sympy,debugger22/sympy,Vishluck/sympy,Titan-C/sympy,Vishluck/sympy,Davidjohnwilson/sympy,mafiya69/sympy,jaimahajan1997/sympy,MridulS/sympy,Designist/sympy,ahhda/sympy,postvakje/sympy,jbbskinny/sympy,yukoba/sympy,Mitchkoens/sympy,kumarkrishna/sympy,shipci/sympy,liangjiaxing/sympy,kaichogami/sympy,jamesblunt/sympy,atsao72/sympy,ahhda/sympy,garvitr/sympy,Arafatk/sympy,sampadsaha5/sympy,yashsharan/sympy,asm666/sympy,pandeyadarsh/sympy,jerli/sympy,mcdaniel67/sympy,cswiercz/sympy,kaushik94/sympy,kumarkrishna/sympy,ChristinaZografou/sympy,iamutkarshtiwari/sympy,jaimahajan1997/sympy,aktech/sympy,Sumith1896/sympy,abhiii5459/sympy,pandeyadarsh/sympy,madan96/sympy,shipci/sympy,AkademieOlympia/sympy,farhaanbukhsh/sympy,cccfran/sympy,cswiercz/sympy,wyom/sympy,madan96/sympy,Sumith1896/sympy