Use arraycopy on list() and make an early return to show more explicitly that list can return null