The if condition looks redundant. What is the type of `alias`?