source/Setup/Controller.php
private function databaseCanBeOverwritten($database)
    {
        $canBeOverwritten = true;

        if (!$this->userDecidedOverwriteDB()) {
            $canBeOverwritten = !$this->getUtilitiesInstance()->checkDbExists($database);
        }

        return $canBeOverwritten;
    }
private function databaseCanBeOverwritten($database)
    {
        $canBeOverwritten = true;

        if (!$this->userDecidedOverwriteDB()) {
            $canBeOverwritten = !$this->getUtilitiesInstance()->checkDbExists($database);
        }

        return $canBeOverwritten;
    }
private function databaseCanBeOverwritten ( $ database ) { $ canBeOverwritten = true ; if ( ! $ this -> userDecidedOverwriteDB ( ) ) { $ canBeOverwritten = ! $ this -> getUtilitiesInstance ( ) -> checkDbExists ( $ database ) ; } return $ canBeOverwritten ; }
Check if database can be safely overwritten.

@param \OxidEsales\EshopCommunity\Setup\Database $database database instance used to connect to DB

@return bool
Check if database can be safely overwritten .