public static boolean isEntityEvaluated(BookmarkReader reader, int id, Integer minBookmarks, Integer maxBookmarks, boolean resource) {
		if (reader == null || id == -1) {
			return true;
		}
		List<Integer> entityCounts = (resource ? reader.getResourceCounts() : reader.getUserCounts());
		if (id < entityCounts.size()) {
			int count = entityCounts.get(id);
			if (minBookmarks != null) {
				if (count < minBookmarks.intValue()) {
					return false;
				}
			} else if (maxBookmarks != null) {
				if (count > maxBookmarks.intValue()) {
					return false;
				}
			}
			return true;
		}
		return false;
	}