Ah, sorry, I forgot that you always need braces around an else.  So
else 
{
   if NOT IsClass(oItem, NumberItem)