private function _checkAPIKeys() { $_oOption = AmazonAutoLinks_Option::getInstance(); if ($_oOption->isAPIConnected()) { return; } $this->oFactory->setSettingNotice(__('You need to set API keys first to create a Search unit', 'amazon-auto-links'), 'updated'); // Go to the Authentication tab of the Settings page. AmazonAutoLinks_PluginUtility::goToAPIAuthenticationPage(); }