Empty array is valid.
Update error handling.