protected function clearCachedValueIf($condition) { if ($condition) { $this->setCachedValue(null); } }