You ask for a particular index, it creates the index. Why complicate the code checking for possible duplicate indexes if it's not a problem people tend to encounter?
And what would characterize a "duplicate" index? Think about partial indexes, where we actually _want_ to have multiple indexes for certain ranges on the same column.
-- Thanks Bernd