function collapsed($el, isFile) {
	if (!$el.isConnected) return true;
	$el = $el.parentElement;
	if (!isFile) {
		$el = $el.parentElement;
	}

	return $el.previousElementSibling.collapsed;
}
Gets weather the folder is collapsed or not
@param {HTMLElement} $el
@param {boolean} isFile
@returns