guarding against empty files on init

great tool btw.

is that change cool?
thanks