check if push notification plugin is actually loaded before trying to use