Refactor check to verify Dropbox connection