src/HipChat/HipChat.php
public function room_exists($room_id) {
    try {
      $this->get_room($room_id);
    }
    catch (HipChat_Exception $e) {
      if ($e->code === self::STATUS_NOT_FOUND) {
        return false;
      }
      throw $e;
    }
    return true;
  }
public function room_exists($room_id) {
    try {
      $this->get_room($room_id);
    }
    catch (HipChat_Exception $e) {
      if ($e->code === self::STATUS_NOT_FOUND) {
        return false;
      }
      throw $e;
    }
    return true;
  }
public function room_exists ( $ room_id ) { try { $ this -> get_room ( $ room_id ) ; } catch ( HipChat_Exception $ e ) { if ( $ e -> code === self :: STATUS_NOT_FOUND ) { return false ; } throw $ e ; } return true ; }
Determine if the given room name or room id already exists.

@param mixed $room_id
@return boolean
Determine if the given room name or room id already exists .