pub fn get_array_element( arr: &[String], idx: i64, ksh_arrays: bool, ) -> Option<String>
Get single array element by index (handles ksh_arrays)