don't check for BSON if it's not defined