public function repositoryExists()
    {
        $schema = $this->em->getConnection()->getSchemaManager();
        $tables = array_filter($schema->listTables(), function ($value) {
            return $value->getName() === 'migrations';
        });

        return !empty($tables);
    }