/** * Check whether an option key is valid * * @param string $key * @return bool */ public function is_option_key_valid($key) { $options = $this->bridge->get_option($key); if ($options && is_array($options)) { return true; } return false; }