why couldn't you just remove the entire type check and just use is_list_like instead here?