add extra check for empty series