put back a numpy 1.7 check