Make sure messages isn't empty