function clearSearchResults(removeEventListener = false) {
	resultsElement.innerHTML = "";
	if (removeEventListener && document.clickEventAdded) {
		document.removeEventListener("click", handleDocumentClick);
		document.clickEventAdded = false;
	}
}
Clears the search results from the display.
If the removeEventListener flag is true, removes the click event listener from the document.
@param {boolean} [removeEventListener=false] - Optional flag to indicate if the click event listener should be removed. Default is false.
@returns {void} - This function doesn't return anything.