Why do you mixin an empty object with args if you already checked that it exists? You could as well do either
var parameters = args || {};
or
var parameters = lang.mixin({}, args);