And what is the necessity of using **if(file.exists())**.