Added check for function get_plugin_data