code: public boolean hasMenuEntry(AdminComponent component, MenuEntry activeMenue) {
  		if (null != component && null != component.getMainMenu()) {
  			Optional<MenuEntry> result = component.getMainMenu().flattened()
  					.filter(menu -> checkForNull(menu, activeMenue) ? menu.getName().equals(activeMenue.getName()): false)
  					.findFirst();
  			return result.isPresent();
  		}
  		return false;
  	}
docs: checks if the activeMenue is part of given component
  
  @param component the AdminComponent which should contain the activeMenue
  @param activeMenue the menue to check
  @return