You have an extra ) here:
if )($1) && ($1 !isnum) && ($2) && ($2 isnum) { echo -a $1 isn't a number, but $2 is. }