protected function _checkAccess(array $url, array $user): bool
    {
        $accessFactory = new AccessFactory();

        return $accessFactory->hasAccess($url, $user);
    }
protected function _checkAccess(array $url, array $user): bool
    {
        $accessFactory = new AccessFactory();

        return $accessFactory->hasAccess($url, $user);
    }
protected function _checkAccess ( array $ url , array $ user ) : bool { $ accessFactory = new AccessFactory ( ) ; return $ accessFactory -> hasAccess ( $ url , $ user ) ; }
Check if current user has access to perform action.

@param mixed[] $url URL
@param mixed[] $user User info
@return bool result of hasAccess method
@todo this needs re-thinking
Check if current user has access to perform action .