---
description: >-
  Has is a boolean function that returns true and false if the key already has a
  value or not
---

# Has

Example:-

```javascript
const db = require('hive-db');

if(db.has('bio.name')){
//because the database already has a name i.e., Lason
console.log('you already have a name stored!');

}
```
