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;
	}