protected function canIf(string $action, ?Authorizable $user = null): bool
    {
        return ! \is_null($user)
                    ? $this->acl->canIfAs($user, $action)
                    : $this->acl->canIf($action);
    }
protected function canIf(string $action, ?Authorizable $user = null): bool
    {
        return ! \is_null($user)
                    ? $this->acl->canIfAs($user, $action)
                    : $this->acl->canIf($action);
    }
protected function canIf ( string $ action , ? Authorizable $ user = null ) : bool { return ! \ is_null ( $ user ) ? $ this -> acl -> canIfAs ( $ user , $ action ) : $ this -> acl -> canIf ( $ action ) ; }
Resolve if authorization can if action exists.

@param  string  $action
@param  \Orchestra\Contracts\Authorization\Authorizable|null  $user

@return bool
Resolve if authorization can if action exists .