Art4\JsonApiClient\Utils\DataContainer::has PHP Method

has() public method

Check if a value exists
public has ( mixed $key ) : boolean
$key mixed The key
return boolean
    public function has($key)
    {
        $key = $this->parseKey($key);
        $string = $key->shift();
        $key->next();
        if ($key->count() === 0) {
            return array_key_exists($string, $this->data);
        }
        if (!array_key_exists($string, $this->data)) {
            return false;
        }
        $value = $this->getValue($string);
        // #TODO Handle other objects and arrays
        if (!$value instanceof AccessInterface) {
            //throw new AccessException('The existance for the key "' . $key->raw . '" could\'nt be checked.');
            return false;
        }
        return $value->has($key);
    }