Added isEmpty method to Element. Element returns proxified empty Element instead of null.