Question about "Choose Two Cards"

Hey Again
Having just coded Agonizing Memories, i stumbled upon a question that somehow google couldn't help me with.
The card says to choose two cards from target players hand, what happens if that player only has one card in his hand, is he still a valid target and only one card is chosen automatically or is he no longer a legal target?
Well not so much a programming question, but still relevant as to how to code the card, my current implementation automatically selects the remaining card and puts it on top of the library when there is less than two cards in target players hand, but i'm not sure as to whether this is the correct behavior?
Having just coded Agonizing Memories, i stumbled upon a question that somehow google couldn't help me with.
The card says to choose two cards from target players hand, what happens if that player only has one card in his hand, is he still a valid target and only one card is chosen automatically or is he no longer a legal target?
Well not so much a programming question, but still relevant as to how to code the card, my current implementation automatically selects the remaining card and puts it on top of the library when there is less than two cards in target players hand, but i'm not sure as to whether this is the correct behavior?