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;
    }
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;
    }
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 ; }
Checks whether a crumb is valid, so that it can safely be added to the
internal breadcrumbs array.

@param array $crumb
@return boolean
Checks whether a crumb is valid so that it can safely be added to the internal breadcrumbs array .