check for atts before parsing