protected function cidExists($cid) { foreach ($this->attachment as $attachment) { if ('inline' == $attachment[6] and $cid == $attachment[7]) { return true; } } return false; }