for posterity - using NaN and Array.forEach method for checking if object element is an indexed array or not - learning exercise only