public function isEmpty($property)
    {
        $value = $this->get($property);
        if ($value === null
            || (is_array($value) && empty($value)
            || (is_string($value) && empty($value)))
        ) {
            return true;
        }

        return false;
    }
public function isEmpty($property)
    {
        $value = $this->get($property);
        if ($value === null
            || (is_array($value) && empty($value)
            || (is_string($value) && empty($value)))
        ) {
            return true;
        }

        return false;
    }
public function isEmpty ( $ property ) { $ value = $ this -> get ( $ property ) ; if ( $ value === null || ( is_array ( $ value ) && empty ( $ value ) || ( is_string ( $ value ) && empty ( $ value ) ) ) ) { return true ; } return false ; }
Checks that a property is empty

This is not working like the PHP `empty()` function. The method will
return true for:

- `''` (empty string)
- `null`
- `[]`

and false in all other cases.

@param string $property The property to check.
@return bool
Checks that a property is empty