Amid all the excitement about the tech giant's latest gadgets, CEO Tim Cook could be forgiven for having some concerns about the global economy in the back of his mind.