This probably shouldn't be hardcoded to $evtOutput[0] - it might be that only the third plugin finds a suitable element that is set.

Better would be to foreach over $evtOutput until either a not empty string or modElement is found.