correct logic error in IsPackageInstalled, was detecting package install status incorrectly due to coding error