It's not just the presence of "gratitude," but the motives we have when we express our gratitude. Is my gratitude because of "what I get"? Or is it because "God is worthy" of my gratitude, even when what he gives me isn't what I would have asked for?