while ($newPath = array_shift($pathElements)) {
$currentPath = $currentPath ? ($currentPath . '/' . $newPath) : $newPath;
- // when we come accross breadcrumb which involves ids,
+ // when we come across breadcrumb which involves ids,
// we should skip now and later on append dynamically.
if (isset($menu[$currentPath]['skipBreadcrumb'])) {
continue;