original_string: public function hasPlaceholder()
      {
          if ($this->preferredChoices) {
              $firstChoice = reset($this->preferredChoices);
  
              return $firstChoice instanceof ChoiceView && '' === $firstChoice->value;
          }
  
          $firstChoice = reset($this->choices);
  
          return $firstChoice instanceof ChoiceView && '' === $firstChoice->value;
      }
code: public function hasPlaceholder()
      {
          if ($this->preferredChoices) {
              $firstChoice = reset($this->preferredChoices);
  
              return $firstChoice instanceof ChoiceView && '' === $firstChoice->value;
          }
  
          $firstChoice = reset($this->choices);
  
          return $firstChoice instanceof ChoiceView && '' === $firstChoice->value;
      }
code_tokens: public function hasPlaceholder ( ) { if ( $ this -> preferredChoices ) { $ firstChoice = reset ( $ this -> preferredChoices ) ; return $ firstChoice instanceof ChoiceView && '' === $ firstChoice -> value ; } $ firstChoice = reset ( $ this -> choices ) ; return $ firstChoice instanceof ChoiceView && '' === $ firstChoice -> value ; }
docstring: Returns whether a placeholder is in the choices.
  
  A placeholder must be the first child element, not be in a group and have an empty value.
  
  @return bool
docstring_tokens: Returns whether a placeholder is in the choices .