Add test to see is there is some data in the message before doing any action on it.