Improved the listener check, if one check fails it ends.
Also adjusted the short var $id to $transation_id (phpmd).