Attempt at merging an 'if (!isUpgrade) {} else if (isUpgrade) {}' expression.