`isinstance` might be a better check here