For performance:

    for ($i = 0, $c = count($this->_attachments); $i < $c; $i++)

Also, add a new line above it.