Checks whether a shipping method has the visibility "required"

@param string $name Name of the shipping method
@param string $destCountry Country code
@return bool
339215
protected function _isOptionVisibilityRequired($name, $destCountry)
    {
        $suboptions = $this->_getOptionVisibilities($destCountry, Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility::REQUIRED);
        foreach ($suboptions as $suboption) {
            if (stripos($name, $suboption) === false) {
                return false;
            }
        }
        return true;
    }
685313
private function isShowFile($name, $showHidden = false)
    {
        $response = true;
        if ($name == '.' || $name == '..' || (!$showHidden && strpos($name, '.') === 0)) {
            $response = false;
        }

        return $response;
    }
1370171
protected function validateRelation($name, $jory): void
    {
        if (empty($name)) {
            throw new JoryException('A relations name should not be empty. (Location: '.$this->address.'relations)');
        }
        // The data in $jory is another jory array, validate recursive with new validator.
        (new self($jory, $this->address.$name))->validate();
    }
1077670
public static function fieldExists(FieldsCargo $cargo, string $name): bool
    {
        return array_key_exists($name, $cargo->fields);
    }
310376
public function hasConcreteMethod($name) {
    if (!array_key_exists($name,$this->methods)) {
      return FALSE;
    }
    $method = $this->getMethod($name);
    
    return !$method->getDeclaringClass()->isInterface();
  }
1124603
function hasPost($name = null) {
        if ($name){
            return isset($this->post[$name]);
        }else{
            return count($this->post) > 0;
        }
    }
47896
public function hasGlobalMethod($name)
    {
        return
            isset($this->_appScopeTrait) &&
            isset($this->app->_hookTrait) &&
            $this->app->hookHasCallbacks('global-method-'.$name);
    }
1191599
public function isActive(string $name): bool
    {
        $extension = $this->getAvailableExtensions()->quessByName($name);
        if ($extension instanceof ExtensionContract) {
            return $extension->isActivated();
        }
        return false;
    }
1062731
public function hasRoute(string $type, string $name): bool{
        return (isset($this->routes[$name]) && isset($this->routes[$name][$type]));
    }
208644
protected function isValidFileOrUrl($name, $contents)
    {
        //Don't try to open a url as an actual file when using this method to setWebhook.
        if ($name == 'url') {
            return false;
        }

        //If a certificate name is passed, we must check for the file existing on the local server,
        // otherwise telegram ignores the fact it wasn't sent and no error is thrown.
        if ($name == 'certificate') {
            return true;
        }

        //Is the content a valid file name.
        if (is_readable($contents)) {
            return true;
        }

        //Is the content a valid URL
        return filter_var($contents, FILTER_VALIDATE_URL);
    }
939495
public function is_null(string $name, int $type = null): bool
    {
        if (isset(self::$globalOptions[$name]) && (is_null($type) || $type == self::TYPE_GLOBAL)) {
            return is_null(self::$globalOptions[$name]);
        } else {
            if (isset($this->options[$name]) && (is_null($type) || $type == self::TYPE_LOCAL)) {
                return is_null($this->options[$name]);
            } else {
                return true;
            }
        }
    }
598794
public function hasCache($name)
    {
        if (isset($this->_caches[$name])
            || $this->hasCacheTemplate($name)
        ) {
            return true;
        }
        return false;
    }
971762
public function __isset( $name ) {
		return $this->is_readonly_property( $name ) && property_exists( $this, $name ) && ! is_null( $this->$name );
	}
751282
protected function isIncluded($_name)
    {
        for ($i = 0, $_i = count($this->includes); $i < $_i; $i++) {
            if ($this->matchPath($this->includes[$i], $_name, $this->isCaseSensitive)) {
                return true;
            }
        }

        return false;
    }
971074
public function hasFile($name)
    {
        foreach ($this->nodes as $node) {
            if ($node->details->getFilename() == $name
                && !$node->details->isDir()
            ) {
                return true;
            }
        }
        return false;
    }
1220776
public function __isset($name) {
		// Property exists
		if (isset($this->_data[$name])) {
			return true;
		}
		
		// Init method exists
		if (method_exists($this, lcfirst($name) . self::INIT_POSTFIX)) {
			return true;
		}
		
		// Init source exists
		if (! empty($this->_sources[$name])) {
			return true;
		}
		
		return false;
	}
1332196
public function check($name){
		if ($this->local){
			/*!
			todo
				add referrer check, to prevent access from remote points
			*/
		}
		if (!isset($this->rules[$name]) || !$this->rules[$name]){
			return false;
		}
		return true;
	}