public function dataContainsImportFile($data, $filename)
    {
        if (!is_array($data) || !isset($data['imports']) || !is_array($data['imports'])) {
            return false;
        }

        foreach ($data['imports'] as $value) {
            if ($value['resource'] === $filename) {
                return true;
            }
        }

        return false;
    }