There can be both a `mediaElement` and a `textElement` on the same `par`, so it actually checks for one, the other, or both this way