original_string: private function checkPageHasImages() {
  
          $html = $this->getPageContent();
  
          // for newly created page
          if ($html == '') {
              return false;
          }
  
          $dom = $this->createDOMDocumentFromHTML($html);
  
          $elements = $dom->getElementsByTagName('img');
          return ($elements->length) ? true : false;
  
      }
code: private function checkPageHasImages() {
  
          $html = $this->getPageContent();
  
          // for newly created page
          if ($html == '') {
              return false;
          }
  
          $dom = $this->createDOMDocumentFromHTML($html);
  
          $elements = $dom->getElementsByTagName('img');
          return ($elements->length) ? true : false;
  
      }
code_tokens: private function checkPageHasImages ( ) { $ html = $ this -> getPageContent ( ) ; // for newly created page if ( $ html == '' ) { return false ; } $ dom = $ this -> createDOMDocumentFromHTML ( $ html ) ; $ elements = $ dom -> getElementsByTagName ( 'img' ) ; return ( $ elements -> length ) ? true : false ; }
docstring: checkPageHasImages.
  check if page Content has a img's in it
  
  @param none
  @return boolean
docstring_tokens: checkPageHasImages . check if page Content has a img s in it