diff --git a/entityreference_prepopulate.module b/entityreference_prepopulate.module
index 9e47f8c..5c1e064 100644
--- a/entityreference_prepopulate.module
+++ b/entityreference_prepopulate.module
@@ -275,7 +275,7 @@ function entityreference_prepopulate_get_values_from_url($field, $instance, $fla
     $ids = explode(',', $_GET[$field_name]);
   }
 
-  if (!$ids) {
+  if (empty($ids)) {
     $cache[$identifier] = FALSE;
     return;
   }
