Allow empty arrays and nils.

@flippyhead Please review.