added empty, typeof, and Element.getClass