Fixed an undefined notice by using array_map along with esc_html to better sanitize data before saving.