We need to unmark the result of HasIndex in order to compare it with true or false without a panic.
The main HCL package is more visible this way, and so it's easier than having to pick it out from dozens of other package directories.