added return type to determinePackageAvailability