Has the photo been tagged with "in this photo" tags

@return true/false
513828
public function isPhotoTagged() {
		$num_tags = elgg_get_annotations([
			'guid' => $this->getGUID(),
			'type' => 'object',
			'subtype' => TidypicsImage::SUBTYPE,
			'annotation_name' => 'phototag',
			'count' => true,
		]);
		if ($num_tags > 0) {
			return true;
		} else {
			return false;
		}
	}
1053793
public function isTagBehaviorReady()
    {
        return isset($this->tagField, $this->tagClass, $this->viaClass, $this->viaLocalField, $this->viaForeignField);
    }
410746
public T photos_getTags(Collection<Long> photoIds)
    throws FacebookException, IOException {
    return this.callMethod(FacebookMethod.PHOTOS_GET_TAGS,
                           new Pair<String, CharSequence>("pids", delimit(photoIds)));
  }
186139
def isOpeningTag(self):
        
        if self.isTag() and \
           not self.isComment() and \
           not self.isEndTag() and \
           not self.isNonPairTag():
            return True

        return False
1025327
public function isMarked() {
        $baseClass=ClassInfo::baseDataClass($this->owner->class);
        $id=$this->owner->ID;
        return isset(self::$marked[$baseClass][$id]) ? self::$marked[$baseClass][$id] : false;
    }
1330770
private final boolean checkRef(ComponentTag tag) {
		boolean ok = false;
		if (!tag.getName().equals("a")) {
			IValueMap attributes = tag.getAttributes();
			String ref = attributes.getString("href");
			if (ref == null) {
				ref = attributes.getString("src");
			}

			if ((ref != null)
					&& (isJawrImageTag(tag) || (ref.indexOf(":") == -1))) {
				ok = true;
			}

		}

		return ok;
	}
841231
def fetch_recent_images_by_tag(tag = nil)
      configure_connection
      tag ||= Lentil::Engine::APP_CONFIG["default_image_search_tag"]
      Instagram.tag_recent_media(tag, :count=>10)
    end
221636
boolean isMarked()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "isMarked");
      SibTr.exit(tc, "isMarked", new Boolean(_marked));
    }

    return _marked;
  }
200162
def has_ist_trigger(self):
        """"""
        triggers = self.template['spec'].get('triggers', [])
        if not triggers:
            return False
        for trigger in triggers:
            if trigger['type'] == 'ImageChange' and \
                    trigger['imageChange']['from']['kind'] == 'ImageStreamTag':
                return True
        return False
695897
protected function is_tagging_enabled() {
        if (!empty($this->tagsoptions['itemtype']) && !empty($this->tagsoptions['component'])) {
            $enabled = core_tag_tag::is_enabled($this->tagsoptions['component'], $this->tagsoptions['itemtype']);
            if ($enabled === false) {
                return false;
            }
        }
        // Backward compatibility with code developed before Moodle 3.0 where itemtype/component were not specified.
        return true;
    }
764573
public PhotoList<Photo> getUntagged(int perPage, int page) throws FlickrException {
        Map<String, Object> parameters = new HashMap<String, Object>();
        parameters.put("method", METHOD_GET_UNTAGGED);

        if (perPage > 0) {
            parameters.put("per_page", Integer.toString(perPage));
        }
        if (page > 0) {
            parameters.put("page", Integer.toString(page));
        }

        Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);
        if (response.isError()) {
            throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
        }
        Element photosElement = response.getPayload();
        PhotoList<Photo> photos = PhotoUtils.createPhotoList(photosElement);
        return photos;
    }
338514
@Override
    public boolean isValid(TagData us) {
        if (!Util.isSpecified(us, ITEMS)) {
            if (!Util.isSpecified(us, BEGIN) || !(Util.isSpecified(us, END))) {
                return false;
            }
        }
        return true;
    }
958365
public function hasImage()
    {
        $image = $this->owner->getAttribute($this->imageAttribute);
        return !empty($image) && $image != $this->imageDefault;
    }
872499
public function hasTagged(int $tag): bool
    {
        // lazily build lookup map
        if (!isset($this->_taggedMap)) {
            $this->_taggedMap = [];
            foreach ($this->_elements as $element) {
                if ($element->isTagged()) {
                    $this->_taggedMap[$element->tag()] = $element;
                }
            }
        }
        return isset($this->_taggedMap[$tag]);
    }
333686
public function isMetaImageFileLink()
    {
        if ($this->owner->hasMetaImage()) {
            return ($this->owner->getMetaImageLink() == $this->owner->getMetaImageURL());
        }
        
        return false;
    }
186115
public function hasTag ($tag)
	{
		
		foreach ($this->lines as $line)
		{
			if (strpos ($line, '@' . $tag) === 0)
			{
				return TRUE;
			}
		}
		
		return FALSE;
		
	}
723829
def _check_if_tag_already_exists(self):
        """"""
        version = self.data['new_version']
        if self.vcs.tag_exists(version):
            return True
        else:
            return False