Checking the size of the element

Adding a check on the client size of the element 
where size = (offsetWidth * offsetHeight).
This will be able to detect those elements that are hidden or zero-sized in the layout.