# Boolean ## _`Boolean`_.**`isEmpty()`** **Description:** Returns false for all booleans. Returns true for null. **Syntax:** _`Boolean`_.isEmpty() **Returns:** Boolean **Source:** Custom n8n functionality **Examples:** ```javascript // bool = true bool.isEmpty() // => false ``` ```javascript // bool = false bool.isEmpty() // => false ``` ```javascript // bool = null bool.isEmpty() // => true ``` ## _`Boolean`_.**`toNumber()`** **Description:** Converts true to 1 and false to 0 **Syntax:** _`Boolean`_.toNumber() **Returns:** Number **Source:** Custom n8n functionality **Examples:** ```javascript true.toNumber() //=> 1 ``` ```javascript false.toNumber() //=> 0 ``` ## _`Boolean`_.**`toString()`** **Description:** Converts true to the string ‘true’ and false to the string ‘false’ **Syntax:** _`Boolean`_.toString() **Returns:** String **Source:** JavaScript function **Examples:** ```javascript // bool = true bool.toString() //=> 'true' ``` ```javascript // bool = false bool.toString() //=> 'false' ```