Would it be possible to reimplement this with $package_ensure instead.  I prefer to just pass that directly in to package{} and set it to present by default.