hasNativeMenus param code cleanup