DRY package loading

Avoid error when no packages exist.