public function hexists($collection, $key, $field) { $set = $this->getKey($collection, $key, []); return isset($set[$field]); }