public function hasTerm($taxonomy, $term) { return isset($this->terms[$taxonomy]) && isset($this->terms[$taxonomy][$term]); }