public static boolean isInArray(String needle, boolean case_sensitive, String... haystack) {
		if (case_sensitive) {
			for (String s : haystack) {
				if (needle.equals(s)) return true;
			}
			return false;
		} else {
			for (String s : haystack) {
				if (needle.equalsIgnoreCase(s)) return true;
			}
			return false;
		}
	}