public function contains($query, $language = 'glob')
{
if (null === $this->json) {
$this->load();
}
$this->failUnlessGlob($language);
$query = $this->sanitizePath($query);
$results = $this->getReferencesForGlob($query, self::STOP_ON_FIRST);
return !empty($results);
}