Nathanmac\Utilities\Parser\Parser::has PHP Method

has() public method

Determine if the payload contains a non-empty value for a given key.
public has ( string | array $keys ) : boolean
$keys string | array
return boolean
    public function has($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();
        $results = $this->payload();
        foreach ($keys as $value) {
            if ($this->hasValueAtKey($value, $results) === false) {
                return false;
            }
        }
        return true;
    }