LPS-47757 - Add 'isHTMLSourceTextPresent' to get rid of duplicate logic