Use sync version of exists() to make it work.