Why is this necessary (vs. just checking HTTP_ACCEPT?).