diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index 43dcbc32859f0b817fdfbb27c8040f6e36a861e2..8c067d2d718be06d88cca7f74fb78e311103e52a 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -61,13 +61,11 @@ for i = 1:size(M_.endo_names,1)
 end
 
 %% Set the order of approximation to one (if needed).
-if options_.order > 1
-    if ~exist('particle','dir')
-        disp('This version of Dynare cannot estimate non linearized models!')
-        disp('Set "order" equal to 1.')
-        disp(' ')
-        options_.order = 1;
-    end
+if options_.order > 1 && ~isfield(options_,'nonlinear_filter')
+    disp('This version of Dynare cannot estimate non linearized models!')
+    disp('Set "order" equal to 1.')
+    disp(' ')
+    options_.order = 1;
 end
 
 % Set options_.lik_init equal to 3 if diffuse filter is used or