protect against empty contents
Merge pull request #62 from notnoopci/master

protect against empty contents