Implementation of ArrayAccess:offsetExists()

@access public
@author Lionel Lecaque <lionel.lecaque@tudor.lu>
@param  Object key
@return boolean
3162
public function offsetExists( common_Object $key)
    {
        $returnValue = (bool) false;

        
        $returnValue = isset($this->sequence[$key]);
        

        return (bool) $returnValue;
    }
15261
private boolean arrayKeyValueExists(String key, String value) {
    if (visitedPost.containsKey(key)) {
      for(String s : visitedPost.get(key)) {
        if(s.equals(value)) {
          return true;
        }
      }
    }

    return false;

  }
208060
public function offsetExists($offset)
    {
        $allowed = array('commands', 'file', 'namespace', 'root', 'templates');

        if (in_array($offset, $allowed) === false) {
            $message = 'Key "' . $offset . '" does not exists!';

            throw new \InvalidArgumentException($message);
        }

        return $this->$offset !== null && $this->$offset !== '';
    }
284790
public function offsetExists($offset): bool
    {
        if (is_null($this->data)) {
            return false;
        }

        return $this->data($offset, '--$--') !== '--$--';
    }
682012
public function offsetExists($key)
    {
        if (isset($this->firstItems[$key])) {
            return true;
        }

        if (isset($this->lastItems[$key])) {
            return true;
        }

        $record = $this->list->find($this->keyField, $key);

        return $record != null;
    }
972886
public function ifExists(string $key): bool
    {
        if ($this->get($key) === false) {
            return false;
        }

        return true;
    }
820430
public function offsetExists($offset)
    {
        switch ($offset) {
            case 'position': return isset($this->position);
            break;
            case 'subSpecs': return (0 < count($this->subSpecs)) ? true : false;
            break;
            default: return false;
        }
    }
462507
public function offsetExists($offset)
    {
        if ($offset == $this->querySeparator) {
            return true;
        }

        if (isset($this->array[$offset])) {
            return true;
        }

        $nested = $this->nested();

        return isset($nested[$offset]);
    }
547286
public function settingExists($name, $key=null)
	{
		if( is_string($name) )
		{
			$ret = array_key_exists($name,$this->_settings);

			if( $ret && $key !== null )
			{
				$ret = array_key_exists( $key, $this->_settings[ $name ] );
			}
		}
		else
		{
			$ret = false;
		}
		return $ret;
	}
1306072
public function offsetExists($offset)
    {
        $hash = $this->hashAlgo->hash($offset);
        $filePath = $this->getCachePath() . $this->buildKeysCachingPath($hash) . $hash;

        return file_exists($filePath);
    }
93720
public static function exists($arr, $key) {
        // If it's an object, index directly because array_key_exists doesn't
        // work with the ArrayAccess interface. Otherwise, check if it implements
        // ArrayAccess and fall back to array_key_exists.
        if(is_object($arr)) {
            return $arr->offsetExists($key);
        }
        if(is_array($arr)) {
            return array_key_exists($key, $arr);
        }

        return false;
    }
51672
public function offsetExists($offset)
    {
        // We only check isset on the array, if it is an object we return true as the object could be overloaded
        if (! is_array($this->object)) {
            return true;
        }

        if ($method = $this->getPresenterMethodFromVariable($offset)) {
            $result = $this->$method();

            return isset($result);
        }

        return isset($this->object[$offset]);
    }
505981
public function offsetExists($offset)
    {
        if(false === $result = parent::offsetExists($offset)) {
            $result = apc_exists($this->getNamespace().'-object_'.$offset);
        }

        return $result;
    }
553395
public function offsetExists($key)
    {
        $this->executeBeforeCallback();

        if (isset($this->items[$key])) {
            return true;
        }

        return false;
    }
468736
public function offsetExists($key)
    {
        $langs = Languages::getInstance($this->getCategory());
        return isset($langs[$this->code][$key]);
    }
209072
public function offsetExists($offset)
    {
        switch ($offset) {
            case 'field':
                return isset($this->field);
            break;
            case 'indicator': return isset($this->indicator);
            break;
            case 'subfields': return (0 < count($this->subfields)) ? true : false;
            break;
            default:
                return false;
        }
    }
605971
public function offsetExists($object) : bool
    {
        $hash = spl_object_hash($object);

        return isset($this->objects[$hash]);
    }