Add check for root value