I could just check the controller context I suppose, but this seemed like it may be basically the same thing.