Add method  to twig extention

This PR just add method `can` to twig extention