more correct null handling for stringarray