isAI Bool variable added