Skip to main content

$isEmpty

The $isEmpty operator checks if a value is empty (null, empty string, or empty collection).

Input

  • A single value of any type

Output

  • true if the input value is empty (null, empty string, or empty collection), false otherwise

Examples

Check Empty String

Result: true

Check Empty Array

Result: true

Check Empty Object

Result: true

Check Non-Empty Value

Result: false

From Field

Result: true if the text_field is empty, otherwise false