added some checks in the Tweet