protected function notify($options, $room = null)
    {
        if (!isset($options['notification']) or !$options['notification']) {
            return false;
        }

        extract($options['notification']);
        
        if (!isset($room_id) or !$room_id) {
            return false;
        }

        if ($room) {
            $message = str_replace('[room_name]', $room->name, $message);
        }

        return (boolean) $this->hipchat->message_room(
            $room_id,
            $from,
            $message,
            $notify,
            $color,
            $message_format
        );
    }