WordPress at a glance
function is not described

WP_Block_List::valid() public WP 5.5.0

Checks if current position is valid.

{} It's a method of the class: WP_Block_List{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Block_List = new WP_Block_List();
$WP_Block_List->valid();

Changelog

Since 5.5.0 Introduced.

Code of WP_Block_List::valid() WP 5.5.3

<?php
public function valid() {
	return null !== key( $this->blocks );
}