diff --git stormexpense/stormexpense.module stormexpense/stormexpense.module
index 14001ef..2e52ba6 100644
--- stormexpense/stormexpense.module
+++ stormexpense/stormexpense.module
@@ -109,7 +109,7 @@ function stormexpense_access_sql($sql, $where = array()) {
 function stormexpense_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git storminvoice/storminvoice.module storminvoice/storminvoice.module
index 1e92647..75ceb0d 100644
--- storminvoice/storminvoice.module
+++ storminvoice/storminvoice.module
@@ -255,7 +255,7 @@ function storminvoice_access_sql($sql, $where = array()) {
 function storminvoice_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormknowledgebase/stormknowledgebase.module stormknowledgebase/stormknowledgebase.module
index b84d2bb..a11dbcf 100644
--- stormknowledgebase/stormknowledgebase.module
+++ stormknowledgebase/stormknowledgebase.module
@@ -95,7 +95,7 @@ function stormknowledgebase_access_sql($sql, $where = array()) {
 function stormknowledgebase_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormnote/stormnote.module stormnote/stormnote.module
index 2d4c85d..8304353 100644
--- stormnote/stormnote.module
+++ stormnote/stormnote.module
@@ -109,7 +109,7 @@ function stormnote_access_sql($sql, $where = array()) {
 function stormnote_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormorganization/stormorganization.module stormorganization/stormorganization.module
index 2775a92..dd527e1 100644
--- stormorganization/stormorganization.module
+++ stormorganization/stormorganization.module
@@ -105,7 +105,7 @@ function stormorganization_access_sql($sql, $where = array()) {
 function stormorganization_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormperson/stormperson.module stormperson/stormperson.module
index 99b87fd..1511f20 100644
--- stormperson/stormperson.module
+++ stormperson/stormperson.module
@@ -149,7 +149,7 @@ function stormperson_access_sql($sql, $where = array()) {
 function stormperson_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormproject/stormproject.module stormproject/stormproject.module
index ebb2ba5..50e14c1 100644
--- stormproject/stormproject.module
+++ stormproject/stormproject.module
@@ -177,7 +177,7 @@ function stormproject_access_sql($sql, $where = array()) {
 function stormproject_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormtask/stormtask.module stormtask/stormtask.module
index 71664e1..3fad7cb 100644
--- stormtask/stormtask.module
+++ stormtask/stormtask.module
@@ -164,7 +164,7 @@ function stormtask_access_sql($sql, $where = array()) {
 function stormtask_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormteam/stormteam.module stormteam/stormteam.module
index cbccd5c..ecd5cc2 100644
--- stormteam/stormteam.module
+++ stormteam/stormteam.module
@@ -207,7 +207,7 @@ function stormteam_access_sql($sql, $where = array()) {
 function stormteam_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormticket/stormticket.module stormticket/stormticket.module
index 8b99f53..eb073b5 100644
--- stormticket/stormticket.module
+++ stormticket/stormticket.module
@@ -168,7 +168,7 @@ function stormticket_access_sql($sql, $where=array()) {
 function stormticket_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
diff --git stormtimetracking/stormtimetracking.module stormtimetracking/stormtimetracking.module
index 438c86c..ae79b63 100644
--- stormtimetracking/stormtimetracking.module
+++ stormtimetracking/stormtimetracking.module
@@ -110,7 +110,7 @@ function stormtimetracking_access_sql($sql, $where = array()) {
 function stormtimetracking_storm_rewrite_where_sql($query, $primary_table, $account) {
   static $conds = array();
 
-  if ($conds[$primary_table][$account->uid]) {
+  if (isset($conds[$primary_table][$account->uid])) {
     return $conds[$primary_table][$account->uid];
   }
 
