changed "if (boolVar == NO)" to "if (!boolVar)"