FilterList(function ($oAttachment) { return $oAttachment && $oAttachment->IsInline(); }); return \is_array($aList) ? \count($aList) : 0; } }