Check Token

I have the following lines in my old code. In version 2022, I got an Undefined property: CheckToken error. Is there an alternative function for checking tokens?

if ($this->CheckToken) {
echo ‘’;
}

https://discourse.hkvstore.com/t/post-form-token/3688/1