has() public static method

Tells if there is data at the given path.
See also: splitPath()
public static has ( array $data, array | string $path ) : boolean
$data array Data.
$path array | string Path.
return boolean If there is data.
 /**
  *
  */
 public function testHas()
 {
     $data = ['a' => 1, 'b' => ['c' => 2, 'd' => ['e' => 3]]];
     $this->assertTrue(Access::has($data, 'a'));
     $this->assertTrue(Access::has($data, 'b.d.e'));
     $this->assertFalse(Access::has($data, 'a.b.c'));
 }