added method to check if app is installed