Refactoring check for null in msgBody - suggested by Maurice Rabb