diff --git a/mobile_tools.module b/mobile_tools.module
index 0334f4b..78b428d 100755
--- a/mobile_tools.module
+++ b/mobile_tools.module
@@ -707,12 +707,20 @@ function mobile_tools_detect_device() {
 }
 
 /**
- * Get the active device group
+ * Get the active device group.
  *
  * @return array
- *  Returns the active device groups, FALSE otherwise.
+ *   A keyed array containing the active device group ID and type. The array
+ *   will be empty if there is currently no active device group.
+ *     - 'id'
+ *       The ID of the device group.
+ *     - 'type'
+ *       The type of the device group.
  */
 function mobile_tools_get_active_device_group() {
+  // Create an array to hold the active device group ID and type
+  $active_device_group = array();
+
   // There are a few triggers which can point to the active device group
   // @todo add static cache
 
@@ -729,22 +737,20 @@ function mobile_tools_get_active_device_group() {
   else {
     // In case the device group is requested before the Space is initialized
     // we detect based on the active PURL modifiers
-    $device_groups = array();
     $active = purl_active();
     $active = _mobile_tools_get_active_purl_modifiers($active->get());
 
     if (!empty($active)) {
       foreach ($active as $key => $object) {
-        $device_groups[] = array(
+        $active_device_group[] = array(
           'id' => $object->id,
           'type' => MOBILE_TOOLS_DEVICE_GROUP_PREFIX . $object->id,
         );
       }
-      return $device_groups;
     }
-
   }
-  return FALSE;
+
+  return $active_device_group;
 }
 
 /**
