Check settings['display'] is initialized as an array before using in show().