Array has been extended

it works but the returns are ugly. Is there another way?