if statement to determine if tweet should run

if statement to check if the tweet dictionary is not nil.
If so, tweet method will run and post.