Added check for file before running download