Correction on file condition

Instead of checking if the file is there or not, check if the file is
empty or not.