Added check for empty sha rows