public static HashMap<UUID, PackageBlock> removeNullPackages(Player p, HashMap<UUID, PackageBlock> packages) {
        if (packages.containsKey(p.getUniqueId())) {
            PackageBlock pb = new PackageBlock();
            pb.setOwner(p.getUniqueId());
            for (com.yahoo.williamzhang890.transaction.Package packet : packages.get(p.getUniqueId()).getItems()) {
                if (!(packet.isEmpty())) {
                    pb.addPackage(packet);
                }
            }
            packages.put(p.getUniqueId(), pb);
        }
        return packages;
    }