user_data: pull is_user_data_state() into its own function