WPML CMS Nav and Custom Nav_Walker Undefined Property Notices [closed]

Checked the variable with isset to see whether or not it contained a value:

$element->classes[] = ( isset($element->current) || isset($element->current_item_ancestor )) ? 'active' : '';

This solved the notice issue. And this seems to do the trick. Guess I over thought things here. Now I can start adding some content in Arabic and see start using the language switcher.