private static function deriveResourceFilter($results)
    {
        $default = function () {
            return [];
        };

        if (!is_array($results) || !isset($results[0]['resourceURI'])) {
            return $default;
        }

        $pattern = '^' . preg_quote(Client::BASE_URL) . '(?P<resource>[a-z]*)/\d+$';
        $matches = [];
        preg_match("#{$pattern}#", $results[0]['resourceURI'], $matches);
        return Util\Arrays::get($matches, 'resource', $default);
    }