public function haveUserCapabilitiesInDatabase($userId, $role)
    {
        if (!is_array($role)) {
            $meta_key = $this->grabPrefixedTableNameFor() . 'capabilities';
            $meta_value = serialize([$role => 1]);

            return $this->haveUserMetaInDatabase($userId, $meta_key, $meta_value);
        }
        $ids = [];
        foreach ($role as $blogId => $_role) {
            $blogIdAndPrefix = $blogId == 0 ? '' : $blogId . '_';
            $meta_key = $this->grabPrefixedTableNameFor() . $blogIdAndPrefix . 'capabilities';
            $meta_value = serialize([$_role => 1]);
            $ids[] = array_merge($ids, $this->haveUserMetaInDatabase($userId, $meta_key, $meta_value));
        }

        return $ids;
    }