diff --git a/src/OSspecific/Unix/regExp.H b/src/OSspecific/Unix/regExp.H
index 3688c45bf87c63a81c5b77bf3b27aeb38511c7dc..59804082e6a31f0e2a7807ede3d68b947257bbc0 100644
--- a/src/OSspecific/Unix/regExp.H
+++ b/src/OSspecific/Unix/regExp.H
@@ -112,6 +112,12 @@ public:
 
     //- Access
 
+        //- Return true if a precompiled expression does not exist
+        inline bool empty() const
+        {
+            return !preg_;
+        }
+
         //- Does a precompiled expression exist?
         inline bool exists() const
         {