Should be `if (matcher.addListener) {`.