Help / feedback

Q exhauted die pool

If i play hiden power and i only have 1 die in my exhauted pool, the die cost in the card is payed before resolving the card effect?
If it is this way could i get back both my exhauted die and my illussion die?