private function checkCondition($word, $condition) { return $condition == 'tag' ? $this->IsTag($word) : !$this->IsTag($word); }