[BUGFIX] Test if file exist before calling filesize()