add check if attachments are even present