src/Web/Sessions/Session.php
public function isEmpty() {
        $data = $this->data;
        $keys = !empty($this->ignoredEmptyKeys) ? array_fill_keys($this->ignoredEmptyKeys, 1) : [];
        $_keys = !empty($this->ignoredKeys) ? array_fill_keys($this->ignoredKeys, 0) : [];
        $keys = Reaction\Helpers\ArrayHelper::merge($keys, $_keys);
        foreach ($keys as $key => $checkEmpty) {
            if (!Reaction\Helpers\ArrayHelper::keyExists($key, $data)) {
                continue;
            }
            if (!$checkEmpty || empty($data[$key])) {
                unset($data[$key]);
            }
        }
        return empty($data);
    }
public function isEmpty() {
        $data = $this->data;
        $keys = !empty($this->ignoredEmptyKeys) ? array_fill_keys($this->ignoredEmptyKeys, 1) : [];
        $_keys = !empty($this->ignoredKeys) ? array_fill_keys($this->ignoredKeys, 0) : [];
        $keys = Reaction\Helpers\ArrayHelper::merge($keys, $_keys);
        foreach ($keys as $key => $checkEmpty) {
            if (!Reaction\Helpers\ArrayHelper::keyExists($key, $data)) {
                continue;
            }
            if (!$checkEmpty || empty($data[$key])) {
                unset($data[$key]);
            }
        }
        return empty($data);
    }
Check if session is empty, e.g. has no important data
@return bool