must check for empty vendor too.