Sorry to bother you. Did some more testing. I think I now understand the "hasCard" function. It only looks at cards that are not in your current deck. Which is useful.
however the remove function still doesn't seem to work for me.
also do you prefer feedback here or on RPG Maker forums?