(PHP 5 >= 5.3.0, PHP 7)
SplDoublyLinkedList::offsetExists — Returns whether the requested $index exists
$index
index
The index being checked.
true if the requested index exists, otherwise false
true
false