Update $INSTALLED check to fix syntax error