fix to ensure empty json / xml collections return null