public function isEmpty()
    {
        $isEmpty = empty($this->storage);

        if ($isEmpty === false) {
            if ($this->length() == 1) {
                if (is_null($this->values()[0])) {
                    $isEmpty = true;
                }
            }
        }

        return $isEmpty;
    }
public function isEmpty()
    {
        $isEmpty = empty($this->storage);

        if ($isEmpty === false) {
            if ($this->length() == 1) {
                if (is_null($this->values()[0])) {
                    $isEmpty = true;
                }
            }
        }

        return $isEmpty;
    }
public function isEmpty ( ) { $ isEmpty = empty ( $ this -> storage ) ; if ( $ isEmpty === false ) { if ( $ this -> length ( ) == 1 ) { if ( is_null ( $ this -> values ( ) [ 0 ] ) ) { $ isEmpty = true ; } } } return $ isEmpty ; }
Check if a collection is empty.

@return boolean
Check if a collection is empty .