进程是否已在运行，只有unique为true时有效

@param string $name
@return boolean
490253
public static function isRunning($name)
    {
        $processOption = ProcessParser::getInstance()->getProcess($name);
        if(null === $processOption)
        {
            return false;
        }
        if(!$processOption['Process']->unique)
        {
            return false;
        }
        $fileName = static::getLockFileName($name);
        if(!is_file($fileName))
        {
            return false;
        }
        $fp = fopen($fileName, 'w+');
        if(false === $fp)
        {
            return false;
        }
        if(!flock($fp, LOCK_EX | LOCK_NB))
        {
            fclose($fp);
            return true;
        }
        flock($fp, LOCK_UN);
        fclose($fp);
        unlink($fileName);
        return false;
    }
1224105
public function __isset($name)
    {
        return array_key_exists($name, $this->_data) || array_key_exists($name, self::$_globalData);
    }
70494
public function hasEphemeral($name)
    {
        $ephemeral = $this->get(self::EPHEMERAL);

        return isset($ephemeral[$name]);
    }
145639
public function has(string $name) : bool
    {
        foreach ($this->tags as $tag) {
            if ($tag->name == $name) {
                return true;
            }
        }

        return false;
    }
153935
public function has(string $name) : bool
    {
        if (Arr::keyExists($this->registry, $name)) {
            return true;
        } else {
            return false;
        }
    }
277679
public function hasSubsidiary($name)
    {
        $class = $this->getSubsidiaryClass($name);
        if (empty($class)) {
            return false;
        }
        $query = $class::find();
        if (!method_exists($query, 'createdBy')) {
            return false;
        }
        return $query->createdBy($this)->exists();
    }
634290
function getCommands($name, $unique = false)
    {
        if (!isset($this->commands[$name])){
            $this->commands[$name] = [];
        }
        if ($unique){
            $keys = [];
            $result = [];
            foreach ($this->commands[$name] as $com){
                $key = serialize($com);
                if (!isset($keys[$key])){
                    $result[] = $com;
                    $keys[$key] = true;
                }
            }
            unset($keys);
            return $result;
        }
        return $this->commands[$name];
    }
732848
public function exists($name)
    {
        $loader = $this->environment->getLoader();

        try {
            $loader->getSource((string) $name);
        } catch (\Twig_Error_Loader $e) {
            return false;
        }

        return true;
    }
108378
public function hasBlocks($name)
    {
        return isset($this->__blocks[$name]) && !empty($this->__blocks[$name]);
    }
354338
public function has($name)
    {
        return isset($this->data[$name]) && !in_array($this->data[$name], ['', null, false, array()], true);
    }
702131
public function exists(string $name): bool
    {
        if ($this->processes->has($name)) {
            $process = $this->processes->get($name);
            if (Process::kill($process['pid'], 0) === false) {
                $this->processes->forget($name);
                $this->processStoreToFile();

                return false;
            }

            return true;
        }

        return false;
    }
90127
public function has($name)
    {
        $value = $this->get($name);

        return isset($value) ? $value : false;
    }
49507
public function mbox_exists($name){
    if ( $this->is_connected() && !empty($name) ){
      $names = $this->get_all_names_mboxes();
      if ( !empty($names) && \in_array($name, $names) ){
        return true;
      }
    }
    return false;
  }
1250251
public function has(string $name) : bool
    {
        try {
            $result = $this->configCommand($name);
        } catch (RuntimeException $exception) {
            return false;
        }

        return $result->isSuccessful();
    }
155455
public function exists($name): bool
    {
        $filename = $this->getFilename($name);
        if ($filename === false) {
            return false;
        }

        return true;
    }
893996
public function exists($name)
    {
        $viewblocks = $this->get('viewblocks', []);

        return !empty($viewblocks[$name]) || $this->Blocks->exists($name);
    }
72194
public static function isSent($name) {
	
		// remove [] from array
		if (substr($name, -2) == '[]') {
			$name = substr($name, 0, -2);
		}
		
		// seeking a possible name
		return (array_key_exists($name, $_REQUEST));
			
	}