This would make more sense in some context. Eg. a before hook / a custom method / etc. At least explaining a bit about the context would be helpful.