Prevent the plugin to init if there's no data and add callback.