Converts a nullish array to an empty array
The type of array elements
Optional
The array value to check (optional or null)
The original array if it exists, otherwise an empty array
Converts a nullish array to an empty array