Check empty file

fix for #25