Should the if-statement order be switched so it picks the file with the smaller size whenever possible?