isn't this equivalent to : name == mod.getName ?