Use reset to move to start of array, not current()
Use reset to move to start of array, not current()

Fix use of current. See https://www.php.net/current

> The current() function simply returns the value of the array element
> that's currently being pointed to by the internal pointer.
> **It does not move the pointer in any way.**

slevomat/coding-standard