The code is more defensive.