public function getContact($jid) { if ($this->isContact($jid)) { return $this->roster_array[$jid]['contact']; } return null; }