handle empty results or stats
Merge pull request #87 from anentropic/issue-38

handle empty results or stats