I don't understand why the test would be needed, you do receive data only if the ES is selected.
Attach a file by drag & drop or click to upload