MAINT: Simplify if statement
MAINT: Simplify if statement

isinstance(obj, ndarray) will return False if (obj is None) in any case,
so no need to check whether (obj is not None) before it. All tests
pass on my build (the most recent one at the time making this PR).
However, this might have been done for backward compatibility. Will see
how the CI tests do.

endolith/numpy,pizzathief/numpy,endolith/numpy,rgommers/numpy,WarrenWeckesser/numpy,mattip/numpy,tynn/numpy,anntzer/numpy,mhvk/numpy,pizzathief/numpy,tynn/numpy,charris/numpy,grlee77/numpy,MSeifert04/numpy,mattip/numpy,MSeifert04/numpy,madphysicist/numpy,endolith/numpy,solarjoe/numpy,jorisvandenbossche/numpy,mhvk/numpy,grlee77/numpy,gfyoung/numpy,grlee77/numpy,MSeifert04/numpy,mhvk/numpy,jorisvandenbossche/numpy,charris/numpy,gfyoung/numpy,rgommers/numpy,numpy/numpy,jorisvandenbossche/numpy,b-carter/numpy,pbrod/numpy,simongibbons/numpy,Eric89GXL/numpy,simongibbons/numpy,ahaldane/numpy,WarrenWeckesser/numpy,jorisvandenbossche/numpy,mhvk/numpy,Eric89GXL/numpy,pdebuyl/numpy,pdebuyl/numpy,madphysicist/numpy,pbrod/numpy,simongibbons/numpy,pbrod/numpy,shoyer/numpy,seberg/numpy,anntzer/numpy,abalkin/numpy,pdebuyl/numpy,MSeifert04/numpy,jakirkham/numpy,numpy/numpy,mattip/numpy,anntzer/numpy,solarjoe/numpy,simongibbons/numpy,numpy/numpy,shoyer/numpy,madphysicist/numpy,abalkin/numpy,shoyer/numpy,madphysicist/numpy,ahaldane/numpy,jakirkham/numpy,simongibbons/numpy,seberg/numpy,charris/numpy,pdebuyl/numpy,gfyoung/numpy,bringingheavendown/numpy,WarrenWeckesser/numpy,shoyer/numpy,charris/numpy,pizzathief/numpy,ahaldane/numpy,pbrod/numpy,mattip/numpy,solarjoe/numpy,Eric89GXL/numpy,pizzathief/numpy,b-carter/numpy,jakirkham/numpy,jakirkham/numpy,grlee77/numpy,endolith/numpy,WarrenWeckesser/numpy,mhvk/numpy,MSeifert04/numpy,tynn/numpy,seberg/numpy,jakirkham/numpy,madphysicist/numpy,rgommers/numpy,grlee77/numpy,rgommers/numpy,ahaldane/numpy,anntzer/numpy,seberg/numpy,bringingheavendown/numpy,WarrenWeckesser/numpy,bringingheavendown/numpy,pizzathief/numpy,ahaldane/numpy,Eric89GXL/numpy,b-carter/numpy,shoyer/numpy,abalkin/numpy,jorisvandenbossche/numpy,pbrod/numpy,numpy/numpy