Also, since the parameter being passed in is "action" the method could be more semantic if named "preventAction".