Modified check for rows object.