Added check for package before running install.