public function isFresh($name, $time) { try { $timestamp = $this->findTemplate($name)->getTimestamp(); return $timestamp <= $time; } catch (ExceptionInterface $e) { return false; } }