Ok @probins , but I don't think you really need to do that test here, unless I'm missing something.
That would make sense if you were going to use it as a preprocessing function or if you were going to emit some different events based on success / non-success and non-empty features array vs empty features array