($pages)     {         if (!isset($pages[0])) {             return Factory::response(['status' => 'error', 'message' => 'You must send an Activity GUID']);         }         /** @var Activity $activity */         $activity = Entities\Factory::build($pages[0]);         $user = Core\Session::getLoggedinUser();          if ($activity->container_guid != $user->guid) {             $group = Entities\Factory::build($activity->container_guid);             if ($group->isModerator($user) || $group->isOwner($user)) {                 $group->