add() and remove() are for arrays only. You'd have to do it like this:
PHP Code:
findNPC("Astram").varname.add(stuff);
Of course, varname can be anything. If you don't want to use arrays, do something similar to this:
PHP Code:
findNPC("Astram").varname = stuff;