/** * If we have notifications, make sure we can deal with them too, for which we need the scripts. */ public function enqueue() { if (count($this->notifications) > 0) { WPSEO_Premium::enqueue(); } }