check if package is installed