Add check for the last table element.