true if the value is an array. Empty arrays return true even when an element type guard is provided.
Remarks
The type parameter T is intentionally not restricted to JSON values, allowing this function to serve as a
general-purpose array guard beyond JSON validation.
Checks if a value is an array.