How to express the following if function?

Let’s say I have a selected tags element called #SelectedTags. How would I express: if #SelectedTags has one or more options selected, then…

I am specifically looking for how to express that one or more selection tags have been selected by the user so as to execute a specific filter, so not the values themselves, but the fact that there are values chosen.

Format example:
if ( ContentTypeSelectionTagAllIndex . length > 0 ) {

$w.onReady(()=>{
	$w('#SelectedTags').onChange(()=>{
		let selectedIndices = $w("#SelectedTags").selectedIndices;
		let totalIndices = $w("#SelectedTags").selectedIndices.length;
		console.log(selectedIndices);
		console.log(totalIndices);

		// ---> continue ---> if {...} else {...}		
	});
});