original_string: public function hasTranslatedChildren($locale = null)
      {
          foreach ($this->getChildren() as $child)
          {
              if ($child->hasTranslation($locale))
              {
                  return true;
              }
          }
  
          return false;
      }
code: public function hasTranslatedChildren($locale = null)
      {
          foreach ($this->getChildren() as $child)
          {
              if ($child->hasTranslation($locale))
              {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function hasTranslatedChildren ( $ locale = null ) { foreach ( $ this -> getChildren ( ) as $ child ) { if ( $ child -> hasTranslation ( $ locale ) ) { return true ; } } return false ; }
docstring: Filters children by locale
  
  @param string $locale
  @return Collection
docstring_tokens: Filters children by locale