private function MathCheck()
    {
        if ($this->math == null || is_object($this->math) === false) {
            if (function_exists('gmp_add')) {
                $this->math = new GMP();
            } else if (function_exists('bcadd')) {
                $this->math = new BC();
            } else {
                throw new \Exception('Both GMP and BC Math extensions are missing on this system!  Please install one to use the Phactor math library.');
            }
        }

        $this->bytes = (empty($this->bytes)) ? $this->GenBytes() : $this->bytes;
    }