The public API for the modes is the modes or data.modes property, right?

So this is just a utility function, not part of the public API.  Therefore, it probably should not be on the prototype. It doesn't access the this object at all, so it could just be a utility function.  Or you could nest it inside onActivity or inside check(), or just put the code inline in the 'pick' case of the switch statement.