NerdsAndCompany\Schematic\Behaviors\Schematic::isInstalled PHP Method

isInstalled() public method

Determines if Craft is installed by checking if the info table exists.
public isInstalled ( ) : boolean
return boolean
    public function isInstalled()
    {
        if (!isset($this->_isInstalled)) {
            try {
                // First check to see if DbConnection has even been initialized, yet.
                if (Craft::app()->getComponent('db')) {
                    // If the db config isn't valid, then we'll assume it's not installed.
                    if (!Craft::app()->getIsDbConnectionValid()) {
                        return false;
                    }
                } else {
                    return false;
                }
            } catch (\Exception $e) {
                return false;
            }
            $this->_isInstalled = Craft::app()->db->tableExists('info', false);
        }
        return $this->_isInstalled;
    }