public static boolean deleteType(String name) {
            
            if(listTypes.containsKey(name)) {
                Type type = listTypes.get(name);

                if(type.getUnits().isEmpty()) {
                    listTypes.remove(name);
                    return true;
                }
            }
            return false; 
	}