We don't want nulls in our toArray() result, so filter them out.