private function hasLayouts(): bool
    {
        $queryBuilder = $this->connection->createQueryBuilder();
        $queryBuilder->select('COUNT(id) as count')
            ->from('ngbm_layout');

        $result = $queryBuilder->execute()->fetchAll(PDO::FETCH_ASSOC);

        return (int) $result[0]['count'] > 0;
    }