Added test to ensure PHP array access works directly on function call result