public static function reduce(array $set, array $keys) {
        $array = array();

        foreach ($set as $key => $value) {
            if (in_array($key, $keys)) {
                $array[$key] = $value;
            }
        }

        return $array;
    }