Added a function which checks if a massage field is a list or single val...

...ue