How to suffix the string "TEST" to a single element or all elements in a nested array?

PHP Code: 
if( isset( $entry_array'entry' ][0] ) )
{
    
$entry_array'entry' ][0] .= 'TEST';
    echo 
'Found and suffixed.';
}
else
{
    echo 
'Element not found.';