Simplify is_numpy_array as suggested in review
Simplify is_numpy_array as suggested in review

txomon/pytest,tomviner/pytest,The-Compiler/pytest,RonnyPfannschmidt/pytest,Akasurde/pytest,tomviner/pytest,ddboline/pytest,davidszotten/pytest,pytest-dev/pytest,nicoddemus/pytest,nicoddemus/pytest,hackebrot/pytest,The-Compiler/pytest,markshao/pytest,alfredodeza/pytest,pfctdayelise/pytest