Added "pair?" for runtime type checking