wp/lib/blobfolio/wp/bm/svg/svg_dom.php
protected static function remove_nodes($nodes) {
		if (!is_a($nodes, 'DOMNodeList')) {
			return false;
		}

		try {
			while ($nodes->length) {
				static::remove_node($nodes->item(0));
			}
			return true;
		} catch (\Throwable $e) {
			error_log($e->getMessage());
			return false;
		} catch (\Exception $e) {
			return false;
		}

		return false;
	}
protected static function remove_nodes($nodes) {
		if (!is_a($nodes, 'DOMNodeList')) {
			return false;
		}

		try {
			while ($nodes->length) {
				static::remove_node($nodes->item(0));
			}
			return true;
		} catch (\Throwable $e) {
			error_log($e->getMessage());
			return false;
		} catch (\Exception $e) {
			return false;
		}

		return false;
	}
Remove nodes from a DOMNodeList

@param DOMNodeList $nodes Nodes.
@return bool True/False.