original_string: public static function isValidCrumb($crumb)
      {
          if (!is_array($crumb)) {
              return false;
          }
  
          if (!isset($crumb['name'], $crumb['href'])) {
              return false;
          }
  
          if (!is_string($crumb['name']) || !is_string($crumb['href'])) {
              return false;
          }
  
          if (empty($crumb['name']) || empty($crumb['href'])) {
              return false;
          }
  
          return true;
      }
code: public static function isValidCrumb($crumb)
      {
          if (!is_array($crumb)) {
              return false;
          }
  
          if (!isset($crumb['name'], $crumb['href'])) {
              return false;
          }
  
          if (!is_string($crumb['name']) || !is_string($crumb['href'])) {
              return false;
          }
  
          if (empty($crumb['name']) || empty($crumb['href'])) {
              return false;
          }
  
          return true;
      }
code_tokens: public static function isValidCrumb ( $ crumb ) { if ( ! is_array ( $ crumb ) ) { return false ; } if ( ! isset ( $ crumb [ 'name' ] , $ crumb [ 'href' ] ) ) { return false ; } if ( ! is_string ( $ crumb [ 'name' ] ) || ! is_string ( $ crumb [ 'href' ] ) ) { return false ; } if ( empty ( $ crumb [ 'name' ] ) || empty ( $ crumb [ 'href' ] ) ) { return false ; } return true ; }
docstring: Checks whether a crumb is valid, so that it can safely be added to the
  internal breadcrumbs array.
  
  @param array $crumb
  @return boolean
docstring_tokens: Checks whether a crumb is valid so that it can safely be added to the internal breadcrumbs array .