Adding mono-to-stereo hides mono-to-mono in ProTools?

Oops. Wrong code. That’s where I disabled the mono-stereo in AAX. Here is my code attempting to allow it:

if (layouts.getMainOutputChannelSet() == AudioChannelSet::mono())
{
	if (layouts.getMainInputChannelSet() == AudioChannelSet::mono())
		return true;
}
else if (layouts.getMainOutputChannelSet() == AudioChannelSet::stereo())
{
		if ((layouts.getMainInputChannelSet() == AudioChannelSet::mono()) ||
				layouts.getMainInputChannelSet() == AudioChannelSet::stereo())
			return true;
}
//
return false;