now only do processing if selected_intentions is nor a nil