Enable noUncheckedIndexedAccess to prevent runtime errors when accessing empty arrays.
Currently, there is no guard for accessing a value from an array.
function getThing(things: string[]): string {
return things[0]; // currently does not throw even though this could be undefined
}