has() refactoring: extract single pattern base case into ._has()
has() refactoring: extract single pattern base case into ._has()

+ Simplify common case, when the pattern is an ordinary Basic instance.

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