Fix check if the item doesn't exist in the ttl cache