public function isValid()
    {
        return ((!empty($this->hex) && ctype_xdigit($this->hex)) && (!empty($this->dec) && ctype_digit($this->dec)));
    }
public function isValid()
    {
        return ((!empty($this->hex) && ctype_xdigit($this->hex)) && (!empty($this->dec) && ctype_digit($this->dec)));
    }
public function isValid ( ) { return ( ( ! empty ( $ this -> hex ) && ctype_xdigit ( $ this -> hex ) ) && ( ! empty ( $ this -> dec ) && ctype_digit ( $ this -> dec ) ) ) ; }
Checks to see if the public key is not blank and contains
valid decimal and hex valules for this->hex & this->dec

@return boolean
Checks to see if the public key is not blank and contains valid decimal and hex valules for this - > hex & this - > dec