Fix hasInterfaces logic.