src/includes/classes/Core/Utils/RequestType.php
public function didAction(string $action = '', $data = null)
    {
        if ($action && isset($data)) {
            if (!$data) { // Empty/falsey?
                throw $this->c::issue('Data must be truthy.');
            } // Avoid falsey data, which leads to confusion.
            $this->did_actions[$action] = $data;
        }
        if ($action) {
            return $this->did_actions[$action] ?? null;
        } else {
            return !empty($this->did_actions);
        }
    }
public function didAction(string $action = '', $data = null)
    {
        if ($action && isset($data)) {
            if (!$data) { // Empty/falsey?
                throw $this->c::issue('Data must be truthy.');
            } // Avoid falsey data, which leads to confusion.
            $this->did_actions[$action] = $data;
        }
        if ($action) {
            return $this->did_actions[$action] ?? null;
        } else {
            return !empty($this->did_actions);
        }
    }
Did (completed) an action?

@since 170623.50532 Action utils.

@param string     $action Action to add or check.
@param mixed|null $data   If adding truthy action data.

@return mixed|null Action data, else `null`.