public function isEmpty(...$args): bool
    {
        if (!count($args)) {
            //test to see if it's empty
            return empty($this->data);
        }

        $separator = '--'. md5(uniqid()) . '--';

        $data = $this->getDot(implode($separator, $args), $separator);

        //if it's bool
        if (is_bool($data)) {
            //it's something
            return false;
        }

        //if it's scalar
        if (is_scalar($data)) {
            return !strlen($data);
        }

        return empty($data);
    }
public function isEmpty(...$args): bool
    {
        if (!count($args)) {
            //test to see if it's empty
            return empty($this->data);
        }

        $separator = '--'. md5(uniqid()) . '--';

        $data = $this->getDot(implode($separator, $args), $separator);

        //if it's bool
        if (is_bool($data)) {
            //it's something
            return false;
        }

        //if it's scalar
        if (is_scalar($data)) {
            return !strlen($data);
        }

        return empty($data);
    }
public function isEmpty ( ... $ args ) : bool { if ( ! count ( $ args ) ) { //test to see if it's empty return empty ( $ this -> data ) ; } $ separator = '--' . md5 ( uniqid ( ) ) . '--' ; $ data = $ this -> getDot ( implode ( $ separator , $ args ) , $ separator ) ; //if it's bool if ( is_bool ( $ data ) ) { //it's something return false ; } //if it's scalar if ( is_scalar ( $ data ) ) { return ! strlen ( $ data ) ; } return empty ( $ data ) ; }
Returns true if the path keys
does not exist in the dataset
or if it has an empy value

@param scalar|null ...$args Path keys

@return bool
Returns true if the path keys does not exist in the dataset or if it has an empy value