original_string: protected function prepareContextStack($context = null)
      {
          $stack = new Mustache_Context();
  
          $helpers = $this->mustache->getHelpers();
          if (!$helpers->isEmpty()) {
              $stack->push($helpers);
          }
  
          if (!empty($context)) {
              $stack->push($context);
          }
  
          return $stack;
      }
code: protected function prepareContextStack($context = null)
      {
          $stack = new Mustache_Context();
  
          $helpers = $this->mustache->getHelpers();
          if (!$helpers->isEmpty()) {
              $stack->push($helpers);
          }
  
          if (!empty($context)) {
              $stack->push($context);
          }
  
          return $stack;
      }
code_tokens: protected function prepareContextStack ( $ context = null ) { $ stack = new Mustache_Context ( ) ; $ helpers = $ this -> mustache -> getHelpers ( ) ; if ( ! $ helpers -> isEmpty ( ) ) { $ stack -> push ( $ helpers ) ; } if ( ! empty ( $ context ) ) { $ stack -> push ( $ context ) ; } return $ stack ; }
docstring: Helper method to prepare the Context stack.
  
  Adds the Mustache HelperCollection to the stack's top context frame if helpers are present.
  
  @param mixed $context Optional first context frame (default: null)
  
  @return Mustache_Context
docstring_tokens: Helper method to prepare the Context stack .