add mbstring extension is loaded checks