Map functions don't return values, why `return empty` here?