Not sure why that isn't flagged as a coding style violation.  Please make it:
(is_array($attribs) ? JArrayHelper::toString($attribs) : $attribs)

Other than that it looks good and we'lll get it merged in.