added checks for empty tweets