Check for `secondDataItem` once in an outer `if`, then add nested `if`s for each field.