I have the feeling that this check is the wrong way around. According to the comment on the function this method is called on the new cache to get missing information from the stored one.
So in my book, we should only get the 'flag' if ours is null, not the other way round.