Use File.isFile instead of File.exists