if (size == 2)
{
}
else if (size == 0)
{
}

might be more concise here