Added IsDialog function to Msg class.