<?php

namespace account\base;

class Controller extends \luya\web\Controller
{
    public function getRules()
    {
        return [
            [
                'allow' => true,
                'actions' => [], // apply to all actions by default
                'roles' => ['@'],
            ],
        ];
    }

    public function behaviors()
    {
        return [
            'access' => [
                'class' => \yii\filters\AccessControl::className(),
                'user' => $this->module->getUserIdentity(),
                'rules' => $this->getRules(),
            ],
        ];
    }
    
    public function isGuest()
    {
        return $this->module->getUserIdentity()->isGuest;
    }
}

<?php

namespace account\base;

use Yii;

class Controller extends \luya\web\Controller
{
    public function getRules()
    {
        return [
            [
                'allow' => true,
                'actions' => [], // apply to all actions by default
                'roles' => ['@'],
            ],
        ];
    }

    public function behaviors()
    {
        return [
            'access' => [
                'class' => \yii\filters\AccessControl::className(),
                'user' => Yii::$app->getModule('account')->getUserIdentity(),
                'rules' => $this->getRules(),
            ],
        ];
    }
    
    public function isGuest()
    {
        return Yii::$app->getModule('account')->getUserIdentity()->isGuest;
    }
}

Use fix module names to abstract from account base controller.
Use fix module names to abstract from account base controller.