Avoid one attribute check in Menu.