Yes, but without this function (what is effectively for test whether mbstring extension is loaded) the PMA_StringMB won't work either. So you should add similar test here and skip setting the encoding as the production code would do that as well.