diff --git a/src/Service/Info.php b/src/Service/Info.php
index 59a9b78..7aef44f 100644
--- a/src/Service/Info.php
+++ b/src/Service/Info.php
@@ -59,11 +59,11 @@ class Info {
       $rids = $this->accessStorage->getRoleTermPermissionsByTids($tids);
     }
 
-    if (!empty($rids)) {
+    if (!empty($rids) && $this->isFlipable($rids)) {
       $roles = Role::loadMultiple($rids);
     }
 
-    if (!empty($uids)) {
+    if (!empty($uids) && $this->isFlipable($uids)) {
       $users = User::loadMultiple($uids);
     }
 
@@ -73,4 +73,18 @@ class Info {
 
   }
 
+  private function isFlipable($value) {
+    if (is_array($value)) {
+      foreach ($value as $item) {
+          if (!is_string($item) && !is_integer($item)) {
+              return false;
+          }
+      }
+
+      return true;
+    }
+
+    return false;
+  }
+
 }
\ No newline at end of file
