@desaiuditd Maybe an isset check would be good to do here, just in case.

`isset( $labels[ $sidebar ] ) ? $labels[ $sidebar ] : __esc_html( 'Widgets', 'stream' )`