MAINT: avoid redundant check_finite