auto detect if the createphp twig function is available