Adding new functions

added isHidden function which check element is hidden,
naw element have funtions width and weight only when haven't this attribute