When we say 'There was such a fictional character as Hamlet', we are not referring to a ghostly person we are referring to a fictional character, one who really does exist, because people have written works of a certain sort.