Fix async exists function