public function has($key) { return isset($this->data[$key]); }
public function testHasNotStrict() { $collection = new Collection(['1']); $this->assertTrue($collection->has('1', false)); $this->assertTrue($collection->has(1, false)); $this->assertFalse($collection->has(2, false)); }