private function checkDatabaseFile()
    {
        if ($this->isDatabaseExists()) return;

        $pathinfo = pathinfo($path = $this->getDatabasePath());

        if ( ! file_exists($pathinfo['dirname'])) {
            mkdir($pathinfo['dirname'], 0777, true);
        }

        copy(realpath(__DIR__ . '/../../data/geoip.mmdb'), $path);
    }