check TInterpreterValue::IsValid() rather than GetAsPointer() to check validity