Fix a broken availability check in buildBasicStructure