https://helperhubby.blogspot.com/2017/11/check-if-app-is-installed-and-get-it.html