created iselement function

Created iselement function that returns true for elements