Ip\Request::_isWebsiteRoot PHP Method

_isWebsiteRoot() public method

public _isWebsiteRoot ( ) : boolean
return boolean true if current url is pointing to website root or one of the languages
    public function _isWebsiteRoot()
    {
        $relativePath = $this->getRelativePath();
        if (!$relativePath || (empty($relativePath[0]) || $relativePath[0] == '?' || $relativePath == 'index.php')) {
            return true;
        }
        return false;
    }