This should've been `isinstance`. Damn.