Each of these conditions begins `startElement &&`. Would it be more readable to wrap them in `if (startElement) {...}` and simplify the conditions?