public function getMessageCount() { if ($this->getResultCode() == eppResponse::RESULT_NO_MESSAGES) { return 0; } else { return $this->queryPath('/epp:epp/epp:response/epp:msgQ/@count'); } }