Internal/AdminEncoding.php
public static function isQueryMessage($message, $adminCookie, &$privileged)
    {
        if ($message instanceof QueryMessage) {
            $privileged = $adminCookie !== null && $message->getCookie() === $adminCookie;

            return true;
        } elseif ($message instanceof stdClass && isset($message->_query_)) {
            $privileged = $adminCookie !== null && $message->_query_ === $adminCookie;

            return true;
        } elseif (is_array($message) && isset($message['_query_'])) {
            $privileged = $adminCookie !== null && $message['_query_'] === $adminCookie;

            return true;
        } else {
            return false;
        }
    }
public static function isQueryMessage($message, $adminCookie, &$privileged)
    {
        if ($message instanceof QueryMessage) {
            $privileged = $adminCookie !== null && $message->getCookie() === $adminCookie;

            return true;
        } elseif ($message instanceof stdClass && isset($message->_query_)) {
            $privileged = $adminCookie !== null && $message->_query_ === $adminCookie;

            return true;
        } elseif (is_array($message) && isset($message['_query_'])) {
            $privileged = $adminCookie !== null && $message['_query_'] === $adminCookie;

            return true;
        } else {
            return false;
        }
    }
@param mixed       $message
@param string|null $adminCookie
@param bool        $privileged

@return bool