check for empty messages