created iselement function

Created iselement function that returns true for elements
these should use `znum` and `anum`