Added Nullcheck in Rarity