empty file check functional

not sure about all browsers though