Fix bugs with is() fn handling null.
Add isA() function