garding against empty files

great tool. 

is that change cool?
thanks