If a transaction has 3 or more outputs, the absence of additional keys in the tx_extra field indicates that no subaddresses were used (i.e. only main addresses).
This is a pretty rare case as the vast majority of transactions have 2 outputs. Still, some are suggesting that in an upcoming protocol upgrade the main addresses should be removed entirely so that only subaddresses are used.