public function isValid() { return !empty($this->hex) && ctype_xdigit($this->hex) && (!empty($this->dec) && ctype_digit($this->dec)); }