protected function lock($name)
	{
		if (! array_key_exists($name, $this->locks)) {
			$this->locks[$name] = true;
			return true;
		}

		return false;
	}
protected function lock($name)
	{
		if (! array_key_exists($name, $this->locks)) {
			$this->locks[$name] = true;
			return true;
		}

		return false;
	}
protected function lock ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> locks ) ) { $ this -> locks [ $ name ] = true ; return true ; } return false ; }
Lock to prevent infinite loops

@param string $name
@return bool
Lock to prevent infinite loops