Adding more file existence condition check