public function template($view, array $param = [], $return = false)
    {
        $this->setTwigEnvironment();
        $path = $this->getPath(Inflector::toDirectorySeparator($view), true);

        /*
         | We will check if tpl is holding the object of
         | twig, then we will set twig template
         | environment
         */
        if (is_object(static::$twigEnvironment)/* && is_file($path)*/) {
            $this->setTwigTemplateInstance($view);
        }
        /*
        | We will check is twig template instance exists
        | then we will render twig template with parameters
        */
        if (is_object(static::$twigEnvironment) && is_object($this->get('twig_template'))) {
            return ($return) ?
                $this->get('twig_template')->render($param) :
                $this->get('twig_template')->display($param);
        }

        return $this;
    }