Obviously the twig code is just an extension wrapper for the security check behind it. I'm sure you understand the intention of the documentation beyond its literal text..