may be `brew cask list` is correct.

````diff
- not_if "/usr/local/bin/brew brew list | grep #{new_resource.name}"
+ not_if "/usr/local/bin/brew cask list | grep #{new_resource.name}"
```