Add resolveAlias to exists check as well.