public function hasLink($link) {
        $found = false;
        array_walk_recursive($this->navigation, function($value, $key) use (&$found, $link) {
            if ($value == $link && $key === 'uri') {
                $found = true;
            }
        });
        return $found;
    }
public function hasLink($link) {
        $found = false;
        array_walk_recursive($this->navigation, function($value, $key) use (&$found, $link) {
            if ($value == $link && $key === 'uri') {
                $found = true;
            }
        });
        return $found;
    }
public function hasLink ( $ link ) { $ found = false ; array_walk_recursive ( $ this -> navigation , function ( $ value , $ key ) use ( & $ found , $ link ) { if ( $ value == $ link && $ key === 'uri' ) { $ found = true ; } } ) ; return $ found ; }
Checks to see if a link exists within the current navigation array
@param string $link The link you are checking to see if the exists in the array
@return boolean If the link exists returns true else returns false
Checks to see if a link exists within the current navigation array