itemscope attribute checking

replaced getAttribute('itemscope') != ''  with hasAttribute('itemscope')