diff --git a/entity/Productprice_entity/afterOperatingState.js b/entity/Productprice_entity/afterOperatingState.js
index 80a3d84eb82abf701d27d51058ce18eaeb659e5b..3a2be077156c6bd6a34aa46f6135fde573663e3b 100644
--- a/entity/Productprice_entity/afterOperatingState.js
+++ b/entity/Productprice_entity/afterOperatingState.js
@@ -1,10 +1,9 @@
 import("system.neon");
 import("system.vars");
 
-if(vars.get("$sys.operatingstate") != undefined 
-&& vars.get("$sys.operatingstate") != null 
-&& vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW 
-&& vars.get("$local.value")) // local.value is previous operationgstate or null. This fixes not working Filter
+if(vars.exists("$sys.operatingstate") 
+    && vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_VIEW 
+    && vars.get("$local.value")) // local.value is previous operationgstate or null. This fixes not working Filter
 {
     neon.refresh();
 }