check file exists before getting size