put back the numpy check