I still prefer querying things about the client through the model instead of using a global function call. Call me old-fashioned, but that's how I designed it initially.