public function dontHaveAttachmentInDatabase(array $criteria, $purgeMeta = true, $removeFiles = false)
    {
        $mergedCriteria = array_merge($criteria, ['post_type' => 'attachment']);

        if ((bool)$removeFiles) {
            $posts = $this->grabPostsTableName();
            $attachmentIds = $this->grabColumnFromDatabase($posts, 'ID', $mergedCriteria);
            $this->dontHaveAttachmentFilesInDatabase($attachmentIds);
        }

        $this->dontHavePostInDatabase($mergedCriteria, $purgeMeta);
    }