check for presence of cask before installing it