This should probably be an else if after the string_types check.