Index: Dev/twitter/twitterbot.pl
===================================================================
--- Dev/twitter/twitterbot.pl	(revision 24fa584c806130e9dfba733db4028ca55a75e182)
+++ Dev/twitter/twitterbot.pl	(revision b9060c88e64ce10e6c11cdb9c3a5552c91640aaa)
@@ -144,5 +144,5 @@
 }
 
-if ($tweets) {
+if (ref $tweets and keys %{$tweets}) {
     # save last status to yaml file
     DEBUG  or YAML::Tiny::DumpFile("$Bin/status.yml", $stat);
