public function hasDigit($digit)
    {
        try {
            $this->digits->getValue($digit);
        } catch (DigitList\InvalidDigitException $ex) {
            return false;
        }

        return true;
    }
public function hasDigit($digit)
    {
        try {
            $this->digits->getValue($digit);
        } catch (DigitList\InvalidDigitException $ex) {
            return false;
        }

        return true;
    }
public function hasDigit ( $ digit ) { try { $ this -> digits -> getValue ( $ digit ) ; } catch ( DigitList \ InvalidDigitException $ ex ) { return false ; } return true ; }
Tells if the given digit is part of this numeral system.
@param mixed $digit The digit to look up
@return bool True if the digit exists, false is not
Tells if the given digit is part of this numeral system .