validateAllowedOriginsOrHeaders(elementArr, typeElement) {
        for (let i = 0; i < elementArr.length; i++) {
            const element = elementArr[i];
            if (typeof element !== 'string' || element === '') {
                return errors.MalformedXML;
            }
            if (!this.validateNumberWildcards(element)) {
                const errMsg = `${typeElement} "${element}" can not have ` +
                'more than one wildcard.';
                return errorInstances.InvalidRequest.customizeDescription(errMsg);
            }
        }
        return true;
    }
_validator.validateAllowedOriginsOrHeaders - check values
@param {string[]} elementArr - array of elements to check
@param {string} typeElement - type of element being checked
@return {(Error|true)} - Arsenal error on failure, true on success