Ridge, LASSO and CV: Added argument NULL checks