- $first = true;
- foreach ( $this->parsers as $i => $parser ) {
- $currentResult = call_user_func_array( [ &$this->parsers[$i], $name ], $args );
- if ( $first ) {
- $first = false;
- } else {
+ foreach ( $this->parsers as $parser ) {
+ $currentResult = $parser->$name( ...$args );
+ if ( count( $results ) > 0 ) {