Query orders lena

Why not emitting data directly here, or passing the whole response to emitSuccessEvents? This way we have two ifs, one which checks if there are results and calls emitSuccessEvents and another one inside emitSuccessEvents which gets a message and checks its existence. It looks like it's the same check twice.