more strict comparision

return also `elem[0].scrollHeight` if it is 0