function hasListener( element, name = undefined, handler = undefined, capture = false ) {
	const arr = getEventListenerDataArray( element, capture );

	return name
		? handler
			? arr.some( data => data.name === name && data.handler === handler )
			: arr.some( data => data.name === name )
		: arr.length > 0;
}
@param {Element} element
@param {string?} name
@param {Function?} handler
@param {boolean?} capture
@returns {boolean}