ENH remove _is_1d and _check_1d_array thanks to @GaelVaroquaux