Will you ever run into a condition where row is undefined or is an empty array? May want to check and throw for that?