Since this function does quite a few things, it would probably be good to start it off with checking whether `mActionName == actionName` and return if so?