function addMissingOptions($options) { $opt = array(); foreach ($options as $option => $vars) { if (!get_option($option)) { $opt[$option] = $vars; } } return count($opt) ? WPOTools::addOptions($opt) : true; }