hasVarName -> hasName
Prevent shadowing by renaming