bson len check