code: public function hasImage(SelectorInterface $selector)
      {
          foreach ($this->images as $image) {
              if ($selector->isMatch($image)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Test to see if a form has an image control.
  
  @param $selector Criteria to apply.
  
  @return bool True if present.