function isAllowed(name, allowedList) {
			if (!allowedList) {
				return false;
			}

			return allowedList.includes(name);
		}
Checks if a name is in the allowed list.
@param {string} name The name to check
@param {string[]} [allowedList] The list of allowed names
@returns {boolean} True if the name is allowed, false otherwise