Checking for correct data in pre_output_plugin