Added another API function for checking if the message conatins a group object