Use undefined not empty string when no file is defined so isChanged will be correct.