public function hasKey()
    {
        $this->failIf(!array_key_exists($this->data[1], $this->data[0]));

        return $this->data[0][$this->data[1]];
    }
public function hasKey()
    {
        $this->failIf(!array_key_exists($this->data[1], $this->data[0]));

        return $this->data[0][$this->data[1]];
    }
public function hasKey ( ) { $ this -> failIf ( ! array_key_exists ( $ this -> data [ 1 ] , $ this -> data [ 0 ] ) ) ; return $ this -> data [ 0 ] [ $ this -> data [ 1 ] ] ; }
Assert an array has key, returns value.

@syntax array ?:array has key ?:int,string
@throws DidNotMatchException
@return mixed
Assert an array has key returns value .