inefficient way, but safer, of checking if an app is already downloaded