diff --git a/docroot/sites/all/modules/og/og.module b/docroot/sites/all/modules/og/og.module
index 2338d344..4eca3447 100755
--- a/docroot/sites/all/modules/og/og.module
+++ b/docroot/sites/all/modules/og/og.module
@@ -1828,7 +1828,9 @@ function og_membership_access($op, $entity, $account = NULL, $entity_type = 'og_
  */
 function og_is_group($entity_type, $entity) {
   if (is_numeric($entity)) {
-    $entity = entity_load_single($entity_type, $entity);
+    if(!$entity = entity_load_single($entity_type, $entity)){
+      return false;
+    }
   }
   list(,, $bundle) = entity_extract_ids($entity_type, $entity);
   if (!field_info_instance($entity_type, OG_GROUP_FIELD, $bundle)) {
